-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
48 lines (40 loc) · 1.05 KB
/
netlify.toml
File metadata and controls
48 lines (40 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Netlify Configuration
# For more information: https://docs.netlify.com/configure-builds/file-based-configuration/
[build]
publish = "dist"
command = "npm run build"
# Redirect all requests to /index.html for SPA routing
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# Serve admin page for Decap CMS
[[redirects]]
from = "/admin"
to = "/admin/index.html"
status = 200
[[redirects]]
from = "/admin/*"
to = "/admin/:splat"
status = 200
# Cache static assets
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
# Security headers
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "geolocation=(), microphone=(), camera=()"