insights/netlify.toml

35 lines
763 B
TOML

[build]
command = "npm ci && hugo --minify --gc -b $URL" # change to suite your needs.
publish = "public"
[build.environment]
NODE_VERSION = "19"
HUGO_VERSION = "0.111.3"
HUGO_ENABLEGITINFO = "true"
HUGO_ENV = "production"
GO_VERSION = "1.20"
[[headers]]
for = "/*"
[headers.values]
Referrer-Policy = "strict-origin-when-cross-origin"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "deny"
X-XSS-Protection = "1; mode=block"
[[redirects]]
from = "/en/*"
to = "/en/404.html"
status = 404
[[redirects]]
from = "/id/*"
to = "/id/404.html"
status = 404
# fallback 404 page.
[[redirects]]
from = "/*"
# to = "/404.html"
to = "/en/404.html" # use this instead if defaultContentLanguageInSubdir is enabled.
status = 404