website/netlify.toml
lannyfu cdc034ba60 fix bug
Signed-off-by: lannyfu <lannyfu@kubesphere.io>
2025-07-31 10:24:19 +08:00

43 lines
900 B
TOML

[context.production.environment]
HUGO_VERSION = "0.126.2"
[context.deploy-preview.environment]
HUGO_VERSION = "0.126.2"
[[redirects]]
from = "/log/*"
to = "https://log.kubesphere.io/:splat"
status = 308
force = true
[[redirects]]
from = "/tr/forum/*"
to = "http://139.198.113.75:9900/tr/forum/:splat"
status = 200
force = true
[[redirects]]
from = "/forum/*"
to = "https://ask.kubesphere.io/forum/:splat"
status = 301
force = true
[[redirects]]
from = "/forum/"
to = "https://ask.kubesphere.io/forum/"
status = 301
force = true
[[redirects]]
from = "^(/zh)?/docs/(v3\\.3|v3\\.4|v4\\.1)(/.*)?$"
to = "/404.html"
status = 404
force = true
conditions = { Role = "all" }
# [[headers]]
# for = "^(/zh)?/docs/(v3\\.3|v3\\.4|v4\\.1)(/.*)?$"
# [headers.values]
# Cache-Control = "no-store, max-age=0"
# X-Robots-Tag = "noindex, nofollow"