40 lines
758 B
TOML
40 lines
758 B
TOML
[build]
|
|
publish = "out"
|
|
command = "npm run build:static"
|
|
|
|
[build.environment]
|
|
NODE_VERSION = "18"
|
|
|
|
[[redirects]]
|
|
from = "/home"
|
|
to = "/"
|
|
status = 301
|
|
|
|
[[redirects]]
|
|
from = "/*"
|
|
to = "/index.html"
|
|
status = 200
|
|
|
|
[[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"
|
|
|
|
[[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"
|