From 0aa8ac426ba4efe7269f71f39bda424b43e0270e Mon Sep 17 00:00:00 2001 From: Per Hoener Date: Sat, 19 Sep 2026 17:52:55 +0200 Subject: [PATCH] fix: render pages dynamically for CSP nonces --- src/app/layout.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index dfdded4..d912dc3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata, Viewport } from "next"; +import { connection } from "next/server"; import type { ReactNode } from "react"; import Footer from "../components/Footer"; import Header from "../components/Header"; @@ -37,7 +38,9 @@ export const viewport: Viewport = { initialScale: 1, }; -export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) { +export default async function RootLayout({ children }: Readonly<{ children: ReactNode }>) { + await connection(); + return (