File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [build ]
2+ publishDir = " public"
3+
4+ [build .environment ]
5+ HUGO_VERSION = " 0.123.0"
6+ NODE_VERSION = " 20"
7+
8+ [[redirects ]]
9+ from = " /docs/*"
10+ to = " /documentation/:splat"
11+ status = 301
12+
13+ [[redirects ]]
14+ from = " /blog/*"
15+ to = " /blog/:splat"
16+ status = 301
17+
18+ [[headers ]]
19+ for = " /*"
20+ [headers .values ]
21+ X-Frame-Options = " DENY"
22+ X-Content-Type-Options = " nosniff"
23+ Referrer-Policy = " strict-origin-when-cross-origin"
24+
25+ [[headers ]]
26+ for = " *.js"
27+ [headers .values ]
28+ Cache-Control = " public, max-age=31536000"
29+
30+ [[headers ]]
31+ for = " *.css"
32+ [headers .values ]
33+ Cache-Control = " public, max-age=31536000"
34+
35+ [[headers ]]
36+ for = " *.png"
37+ [headers .values ]
38+ Cache-Control = " public, max-age=2592000"
39+
40+ [context .production .environment ]
41+ HUGO_ENV = " production"
42+
43+ [context .deploy-preview .environment ]
44+ HUGO_ENV = " preview"
45+
46+ [context .branch-deploy .environment ]
47+ HUGO_ENV = " staging"
You can’t perform that action at this time.
0 commit comments