Skip to content

Commit 6d93a90

Browse files
author
I528989
committed
fix(frontend): ensure Next.js app router root layout via layout.jsx
1 parent aeb228b commit 6d93a90

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

templates/frontend/app/layout.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export const metadata = {
2+
title: 'Frontend Service',
3+
description: 'Scaffolded by create-polyglot',
4+
};
5+
6+
export default function RootLayout({ children }) {
7+
return (
8+
<html lang="en">
9+
<body style={{margin:0,fontFamily:'sans-serif'}}>{children}</body>
10+
</html>
11+
);
12+
}

templates/frontend/app/layout.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export const metadata = {
2+
title: 'Frontend Service',
3+
description: 'Scaffolded by create-polyglot',
4+
};
5+
6+
export default function RootLayout({ children }) {
7+
return (
8+
<html lang="en">
9+
<body style={{margin:0,fontFamily:'sans-serif'}}>{children}</body>
10+
</html>
11+
);
12+
}

0 commit comments

Comments
 (0)