diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 88ba934..467b166 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,6 +1,6 @@ import { type Metadata } from "next"; import { JetBrains_Mono, Outfit, Source_Sans_3 } from "next/font/google"; -import "plyr-react/plyr.css"; +import { headers } from "next/headers"; import { BASE_URL } from "~/constant"; import { type ActionResponseSchema } from "~/types"; @@ -74,6 +74,8 @@ export const metadata: Metadata = { }; export default async function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) { + const head = await headers(); + const pathname = head.get("X-Pathname") ?? "/"; let unlocked: ActionResponseSchema = { success: true, message: "Index is public", @@ -90,7 +92,8 @@ export default async function RootLayout({ children }: Readonly<{ children: Reac >