mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
add netlity rules
Signed-off-by: pixiake <guofeng@yunify.com>
This commit is contained in:
parent
15dda94c55
commit
8cce40c38c
25
netlify.toml
25
netlify.toml
|
|
@ -4,5 +4,26 @@
|
|||
[context.deploy-preview.environment]
|
||||
HUGO_VERSION = "0.101.0"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
|
||||
[[redirects]]
|
||||
from = "/docs"
|
||||
to = "/docs/v3.3"
|
||||
status = 302
|
||||
force = true
|
||||
|
||||
[[redirects]]
|
||||
from = "/zh/docs"
|
||||
to = "/zh/docs/v3.3"
|
||||
status = 302
|
||||
force = true
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/*"
|
||||
to = "/docs/v3.3/:splat"
|
||||
status = 301
|
||||
force = true
|
||||
|
||||
[[redirects]]
|
||||
from = "/zh/docs/*"
|
||||
to = "/zh/docs/v3.3/:splat"
|
||||
status = 301
|
||||
force = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue