Skip to content

Commit aefaa45

Browse files
author
Ritika Mishra
committed
updated path search
1 parent 3e1d9d6 commit aefaa45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ import { Toaster } from "../components/ui/sonner";
1212
import "./globals.css";
1313
const isGithubActor = process.env.NEXT_PUBLIC_GITHUB_ACTOR === "upsidedownlabs" || process.env.NEXT_PUBLIC_GITHUB_ACTOR === undefined;
1414
const basePath = isGithubActor ? "" : "/Chords-Web";
15+
const manifestHref = basePath ? `${basePath}/manifest.json` : "manifest.json";
1516

1617

1718
const inter = Inter({ subsets: ["latin"] });
1819

1920
export 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

2526
const 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,

0 commit comments

Comments
 (0)