-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
29 lines (24 loc) · 717 Bytes
/
netlify.toml
File metadata and controls
29 lines (24 loc) · 717 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
[build]
# Fetch upstream data, consolidate into static JSON, then build the Vite app
command = "npm run fetch-metadata && npm run build"
# Directory with the built files
publish = "dist"
# Redirect rules for SPA routing
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# Headers for consolidated stats data (1 hour cache)
[[headers]]
for = "/plugin-modernizer-stats/*"
[headers.values]
Cache-Control = "public, max-age=3600"
# Legacy metadata path (kept for backward compat)
[[headers]]
for = "/metadata/*"
[headers.values]
Cache-Control = "public, max-age=3600"
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"