diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000000000000000000000000000000000000..5737a8b04eac8f7b8d08ca8f25446ac189a92957 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,25 @@ +[build] + command = "bun run build" + publish = "dist" + +# Handle React Router +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 + +# Security headers +[[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: blob: https:; connect-src 'self' https:;" + +# Cache control for static assets +[[headers]] + for = "/assets/*" + [headers.values] + Cache-Control = "public, max-age=31536000, immutable" \ No newline at end of file diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000000000000000000000000000000000000..50a463356b7d89bc7f17cfe56003eab71b56d8ad --- /dev/null +++ b/public/_redirects @@ -0,0 +1 @@ +/* /index.html 200 \ No newline at end of file