2023-05-25 04:42:46 +07:00
|
|
|
[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]]
|
2023-05-26 07:40:34 +07:00
|
|
|
from = "/id/*"
|
|
|
|
to = "/id/404.html"
|
2023-05-25 04:42:46 +07:00
|
|
|
status = 404
|
|
|
|
|
|
|
|
# fallback 404 page.
|
|
|
|
[[redirects]]
|
|
|
|
from = "/*"
|
|
|
|
# to = "/404.html"
|
|
|
|
to = "/en/404.html" # use this instead if defaultContentLanguageInSubdir is enabled.
|
|
|
|
status = 404
|