Skip to content

Commit c984e0e

Browse files
committed
feat(deploy): add Netlify configuration
SPA routing, security headers, and asset caching for static deployment.
1 parent cfb21f0 commit c984e0e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

netlify.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[build]
2+
command = "npm run build"
3+
publish = "dist"
4+
5+
[[redirects]]
6+
from = "/*"
7+
to = "/index.html"
8+
status = 200
9+
10+
[[headers]]
11+
for = "/*"
12+
[headers.values]
13+
X-Frame-Options = "DENY"
14+
X-Content-Type-Options = "nosniff"
15+
Referrer-Policy = "strict-origin-when-cross-origin"
16+
17+
[[headers]]
18+
for = "/assets/*"
19+
[headers.values]
20+
Cache-Control = "public, max-age=31536000, immutable"
21+
22+
[[headers]]
23+
for = "/sw.js"
24+
[headers.values]
25+
Cache-Control = "no-cache"

0 commit comments

Comments
 (0)