-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathnetlify.toml
More file actions
45 lines (37 loc) · 1011 Bytes
/
netlify.toml
File metadata and controls
45 lines (37 loc) · 1011 Bytes
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
[build]
# This is the directory that will be deployed to Netlify
publish = "docs"
# Build command (not needed since we build in GitHub Actions)
command = "yarn docs"
[build.environment]
NODE_VERSION = "20"
# Redirect rules for better documentation navigation
[[redirects]]
from = "/"
to = "/index.html"
status = 200
# Cache static assets
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.svg"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
# 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"