File tree Expand file tree Collapse file tree 1 file changed +20
-19
lines changed
Expand file tree Collapse file tree 1 file changed +20
-19
lines changed Original file line number Diff line number Diff line change 1- import type { Metadata } from 'next' ;
1+ import type { Metadata , Viewport } from 'next' ;
22import React from 'react' ;
33
44import './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 ) ;
You can’t perform that action at this time.
0 commit comments