From e0099597f74270ba4dc29db1c30a0242821086b9 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Thu, 21 Nov 2024 13:19:47 -0700 Subject: [PATCH] add comment --- nosecone-next/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nosecone-next/index.ts b/nosecone-next/index.ts index 7cb1c5724..d810e80e7 100644 --- a/nosecone-next/index.ts +++ b/nosecone-next/index.ts @@ -10,7 +10,8 @@ export const defaults = { // Replace the defaults to remove `'self'` process.env.NODE_ENV === "development" ? ([nonce, "'strict-dynamic'"] as const) - : ([nonce, "'strict-dynamic'", "'unsafe-eval'"] as const), + : // Next.js hot reloading relies on `eval` so we enable it in development + ([nonce, "'strict-dynamic'", "'unsafe-eval'"] as const), styleSrc: [ ...baseDefaults.contentSecurityPolicy.directives.styleSrc, "'unsafe-inline'",