diff --git a/nosecone-next/index.ts b/nosecone-next/index.ts index d810e80e7..bb135b703 100644 --- a/nosecone-next/index.ts +++ b/nosecone-next/index.ts @@ -9,9 +9,9 @@ export const defaults = { scriptSrc: // Replace the defaults to remove `'self'` process.env.NODE_ENV === "development" - ? ([nonce, "'strict-dynamic'"] as const) - : // Next.js hot reloading relies on `eval` so we enable it in development - ([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) + : ([nonce, "'strict-dynamic'"] as const), styleSrc: [ ...baseDefaults.contentSecurityPolicy.directives.styleSrc, "'unsafe-inline'",