From 88f7c11a500e6b33b33a1ad605d7f839dc2e9fd0 Mon Sep 17 00:00:00 2001
From: "Richard T. Carback III" <rick.carback@gmail.com>
Date: Wed, 2 Apr 2025 20:56:51 -0400
Subject: [PATCH] Add netlify config

---
 netlify.toml      | 25 +++++++++++++++++++++++++
 public/_redirects |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 netlify.toml
 create mode 100644 public/_redirects

diff --git a/netlify.toml b/netlify.toml
new file mode 100644
index 00000000..5737a8b0
--- /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 00000000..50a46335
--- /dev/null
+++ b/public/_redirects
@@ -0,0 +1 @@
+/*    /index.html   200
\ No newline at end of file
-- 
GitLab