Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine-arcjet committed Nov 21, 2024
1 parent a0107c1 commit e009959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nosecone-next/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down

0 comments on commit e009959

Please sign in to comment.