-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
45 lines (37 loc) · 969 Bytes
/
netlify.toml
File metadata and controls
45 lines (37 loc) · 969 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]
publish = "build"
command = "npm ci && npm run build"
[build.environment]
NODE_VERSION = "20.18.1"
NPM_VERSION = "10"
NODE_OPTIONS = "--max-old-space-size=4096"
CI = "true"
# SPA redirect for client-side routing
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# Disable processing since Docusaurus handles optimization
[build.processing]
skip_processing = true
# Cache headers for static assets
[[headers]]
for = "/static/*"
[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"
[[headers]]
for = "*.png"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "*.svg"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"