From 5677b91c9c13cf4bf4eb643d79f2a920002d5ca3 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 09:57:40 +0000 Subject: [PATCH] fix: update Netlify configuration with proper headers and redirects Co-Authored-By: G --- netlify.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/netlify.toml b/netlify.toml index 1337d12..3b896fb 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,17 +5,32 @@ [build.environment] NODE_VERSION = "18" + NEXT_TELEMETRY_DISABLED = "1" [functions] node_bundler = "esbuild" included_files = ["app/api/**"] external_node_modules = ["mongodb"] +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 + [[redirects]] from = "/api/*" to = "/.netlify/functions/api/:splat" status = 200 +[[headers]] + for = "/*" + [headers.values] + X-Frame-Options = "DENY" + X-XSS-Protection = "1; mode=block" + X-Content-Type-Options = "nosniff" + Referrer-Policy = "strict-origin-when-cross-origin" + Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:;" + [[headers]] for = "/api/*" [headers.values]