From 53fa4b0b881f7a1f3a9823968d21d1746e5af8ba Mon Sep 17 00:00:00 2001 From: lannyfu Date: Thu, 31 Jul 2025 10:48:58 +0800 Subject: [PATCH] fix: Disable doc url Signed-off-by: lannyfu --- netlify.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/netlify.toml b/netlify.toml index 5baf81610..166866126 100644 --- a/netlify.toml +++ b/netlify.toml @@ -28,3 +28,17 @@ 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" + +