netlify.toml (54 lines of code) (raw):
[build]
publish = "public"
command = "npm i postcss postcss-cli autoprefixer && hugo --verbose --minify"
[context.production.environment]
HUGO_VERSION = "0.110.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.split1]
command = "npm i postcss postcss-cli autoprefixer && hugo --verbose --minify"
[context.split1.environment]
HUGO_VERSION = "0.110.0"
HUGO_ENV = "production"
[context.deploy-preview]
command = "npm i postcss postcss-cli autoprefixer && hugo --verbose -DF"
[context.deploy-preview.environment]
HUGO_VERSION = "0.110.0"
# Skip all post processing in deploy previews,
# ignoring any other settings
[context.deploy-preview.processing]
skip_processing = true
[context.branch-deploy]
command = "npm i postcss postcss-cli autoprefixer && hugo --verbose -DF"
[context.branch-deploy.environment]
HUGO_VERSION = "0.110.0"
[context.next.environment]
HUGO_ENABLEGITINFO = "true"
# https://docs.netlify.com/configure-builds/file-based-configuration/#post-processing
# If skip_processing = true, all other settings are ignored
[build.processing]
skip_processing = true
[build.processing.css]
bundle = true
minify = true
[build.processing.js]
bundle = true
minify = true
[build.processing.html]
pretty_urls = false
[build.processing.images]
compress = true
[[redirects]]
from = "https://eks-news.netlify.app/*"
to = "https://eks.news/:splat"
status = 301
force = true
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "no-referrer, strict-origin-when-cross-origin"
X-Content-Type-Options = "nosniff"
Permissions-Policy = 'fullscreen=(self "https://eks.news"), geolocation=(), camera=(), microphone=()'
Strict-Transport-Security = 'max-age=63072000; includeSubDomains; preload'