diff --git a/src/app/layout.tsx b/src/app/layout.tsx index bcdf88c..e38694c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata, Viewport } from "next"; +import { headers } from "next/headers"; import { Inter } from "next/font/google"; import { ThemeProvider } from "next-themes"; import { NextIntlClientProvider } from "next-intl"; @@ -44,6 +45,11 @@ export default async function RootLayout({ }>) { const locale = await getLocale(); const messages = await getMessages(); + // Set by Clerk's contentSecurityPolicy strict mode (src/proxy.ts) — needed + // here because next-themes renders its FOUC-prevention script as a raw + // inline