From 4214845d7843a40e815e42f61c14edb673504326 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Tue, 16 Jun 2026 19:56:22 +0700 Subject: [PATCH] chore: add netlify.toml with build config, cache headers, and SPA redirect Co-authored-by: shakespeare.diy --- netlify.toml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..8f4d3fe --- /dev/null +++ b/netlify.toml @@ -0,0 +1,20 @@ +[build] + command = "npm run build" + publish = "dist" + +[[headers]] + for = "/*" + [headers.values] + X-Frame-Options = "SAMEORIGIN" + X-Content-Type-Options = "nosniff" + Referrer-Policy = "strict-origin-when-cross-origin" + +[[headers]] + for = "/assets/*" + [headers.values] + Cache-Control = "public, max-age=31536000, immutable" + +[[redirects]] + from = "/*" + to = "/index.html" + status = 200