Skip to content

Commit f29d89b

Browse files
committed
push up fixed to layout component
1 parent 1b04fb0 commit f29d89b

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

src/ui/app/layout.tsx

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
1-
import type { Metadata } from 'next';
1+
import type { Metadata, Viewport } from 'next';
22
import React from 'react';
33

44
import './globals.css';
55

6-
export const metadata: Metadata = {
7-
title: 'GuideLLM',
8-
description: 'LLM Benchmarking Tool',
9-
};
10-
11-
export default function RootLayout({
12-
children,
13-
}: Readonly<{
14-
children: React.ReactNode;
15-
}>) {
6+
export async function generateMetadata(): Promise<Metadata> {
167
const assetPrefix = process.env.ASSET_PREFIX || '';
178

9+
return {
10+
title: 'GuideLLM',
11+
description: 'LLM Benchmarking Tool',
12+
icons: {
13+
icon: `${assetPrefix}/favicon.ico`,
14+
apple: `${assetPrefix}/favicon-192x192.png`,
15+
},
16+
manifest: `${assetPrefix}/manifest.json`,
17+
};
18+
}
19+
20+
export const viewport: Viewport = {
21+
initialScale: 1,
22+
themeColor: '#000000',
23+
width: 'device-width',
24+
};
25+
26+
export default function RootLayout({ children }: { children: React.ReactNode }) {
1827
return (
1928
<html lang="en">
20-
<Head>
21-
<meta charSet="utf-8" />
22-
<link rel="icon" href={`${assetPrefix}/favicon.ico`} />
23-
<link rel="apple-touch-icon" href={`${assetPrefix}/favicon-192x192.png`} />
24-
<meta name="viewport" content="width=device-width, initial-scale=1" />
25-
<meta name="theme-color" content="#000000" />
26-
<link rel="manifest" href={`${assetPrefix}/manifest.json`} />
27-
</Head>
2829
<body>{children}</body>
2930
</html>
3031
);

0 commit comments

Comments
 (0)