chore: unsafe-eval

This commit is contained in:
Etienne Stalmans committed 2026-03-08 12:11:16 +01:00
1 parent 1c4fbc32ee
commit 9e36c686d2
1 file changed
+6 -5
+6 -5
View File
@@ -36,11 +36,12 @@ const withBundleAnalyzer = bundleAnalyzer({
const isPreview = process.env.NEXT_PUBLIC_IS_PLATFORM === 'true' && process.env.VERCEL === '1' && process.env.VERCEL_ENV === 'preview'
const scriptSrc = [
"'unsafe-inline'",
"'self' 'unsafe-inline' 'unsafe-eval'",
"https://frontend-assets.supabase.com",
"https://ph.supabase.green",
"https://ph.supabase.com",
isPreview ? "https://*.vercel.app/" : "",
"https://ss.supabase.com",
isPreview ? "https://ph.supabase.green": "https://ph.supabase.com",
isPreview ? "https://*.vercel.app/" : "", // preview domain
isPreview ? "https://vercel.live" : "", // debugger
].filter(Boolean).join(" ")
const cspString = [
@@ -115,7 +116,7 @@ const nextConfig = {
},
{
key: 'X-Content-Type-Options',
value: 'no-sniff',
value: 'nosniff',
},
{
key: 'Referrer-Policy',