add netlity rules

Signed-off-by: pixiake <guofeng@yunify.com>
This commit is contained in:
pixiake 2022-08-09 08:38:24 +08:00
parent 15dda94c55
commit 8cce40c38c

View File

@ -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