Skip to content

Commit

Permalink
Revert "Update next.config.js" (#901)
Browse files Browse the repository at this point in the history
Reverts #900
  • Loading branch information
ken-matsui authored Nov 27, 2023
1 parent 7c60f9e commit 92862f1
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
/** @type {import('next').NextConfig} */
const path = require("path");

const isDev = process.env.NODE_ENV === 'development';

let ContentSecurityPolicy = `
const ContentSecurityPolicy = `
default-src 'self';
connect-src 'self' vitals.vercel-insights.com;`;

ContentSecurityPolicy += isDev ? `
script-src 'self' 'unsafe-eval' 'unsafe-inline';
style-src 'self' 'unsafe-inline';
` : `
script-src 'self';
style-src 'self';
connect-src 'self' vitals.vercel-insights.com;
`;

const securityHeaders = [
Expand Down

0 comments on commit 92862f1

Please sign in to comment.