1- import type { Metadata } from "next" ;
1+ import type { Metadata } from "next" ;
22import { IBM_Plex_Sans , JetBrains_Mono } from "next/font/google" ;
33
44import "./globals.css" ;
@@ -15,21 +15,20 @@ const jetbrainsMono = JetBrains_Mono({
1515 variable : "--font-mono"
1616} ) ;
1717
18- const [ ownerFromEnv , repoFromEnv ] = ( process . env . GITHUB_REPOSITORY || "huayuankou9-arch/WebCompass" ) . split ( "/" ) ;
19- const owner = ownerFromEnv || "huayuankou9-arch" ;
20- const repo = repoFromEnv || "WebCompass" ;
21- const productionUrl = `https://${ owner } .github.io/${ repo } /` ;
18+ const productionOrigin = "https://webcompass.ai" ;
19+ const productionPath = "/WebCompass/" ;
20+ const productionUrl = `${ productionOrigin } ${ productionPath } ` ;
2221const siteUrl = process . env . NODE_ENV === "production" ? productionUrl : "http://localhost:3000/" ;
23- const ogImagePath = "og-image.svg" ;
24- const faviconPath = "favicon.svg" ;
22+ const ogImagePath = "/WebCompass/ og-image.svg" ;
23+ const faviconPath = "/WebCompass/ favicon.svg" ;
2524
2625export const metadata : Metadata = {
2726 title : "WebCompass | A Unified Multimodal Benchmark for Web Coding" ,
2827 description :
2928 "WebCompass: A unified multimodal benchmark and evaluation framework for web coding across generation, editing, and repair." ,
30- metadataBase : new URL ( siteUrl ) ,
29+ metadataBase : new URL ( process . env . NODE_ENV === "production" ? productionOrigin : "http://localhost:3000" ) ,
3130 alternates : {
32- canonical : siteUrl
31+ canonical : process . env . NODE_ENV === "production" ? productionPath : "/"
3332 } ,
3433 openGraph : {
3534 title : "WebCompass" ,
0 commit comments