File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,15 @@ import { Toaster } from "../components/ui/sonner";
1212import "./globals.css" ;
1313const isGithubActor = process . env . NEXT_PUBLIC_GITHUB_ACTOR === "upsidedownlabs" || process . env . NEXT_PUBLIC_GITHUB_ACTOR === undefined ;
1414const basePath = isGithubActor ? "" : "/Chords-Web" ;
15+ const manifestHref = basePath ? `${ basePath } /manifest.json` : "manifest.json" ;
1516
1617
1718const inter = Inter ( { subsets : [ "latin" ] } ) ;
1819
1920export const metadata : Metadata = {
2021 title : "Chords" ,
2122 description : "Web Serial based Biopotential Signal recorder application." ,
22- manifest : ` ${ basePath } /manifest.json` , // ✅ Dynamically set manifest path
23+ manifest : manifestHref , // dynamically set manifest path (relative fallback)
2324} ;
2425
2526const lobsterTwo = Lobster_Two ( {
@@ -47,7 +48,7 @@ export default function RootLayout({
4748} > ) {
4849 return (
4950 < html lang = "en" suppressHydrationWarning >
50- < head > < link rel = "manifest" href = { ` ${ basePath } /manifest.json` } /> </ head >
51+ < head > < link rel = "manifest" href = { manifestHref } /> </ head >
5152 < body
5253 className = { cn (
5354 lobsterTwo . variable ,
You can’t perform that action at this time.
0 commit comments