From 67ef5764e864fb91d52ca17505ea33462a58a386 Mon Sep 17 00:00:00 2001 From: WhiteMuush Date: Sat, 11 Jul 2026 13:09:34 +0200 Subject: [PATCH] fix: force dynamic rendering for CSP nonces --- src/app/layout.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index ed9d4e8..aecbd00 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,6 +1,11 @@ import type { Metadata } from "next"; import "./globals.css"; +// Statically prerendered pages cannot carry the per-request CSP nonce, so +// their script tags get blocked under strict-dynamic. Force dynamic rendering +// globally; only /login was static anyway. +export const dynamic = "force-dynamic"; + export const metadata: Metadata = { title: "DataShield", description: "Self-hosted employee data breach monitoring",