From cfb694ea833bdf5d338cd7d8aa0fe6f45452f129 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 6 Nov 2026 14:13:09 +0800 Subject: [PATCH 1/2] fix(website): redirect config requests on Cloudflare Pages --- website/docs/public/_redirects | 5 +++++ website/rstack.config.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 website/docs/public/_redirects diff --git a/website/docs/public/_redirects b/website/docs/public/_redirects new file mode 100644 index 00000000..1d65b4e4 --- /dev/null +++ b/website/docs/public/_redirects @@ -0,0 +1,5 @@ +# Keep /config as a stable entry point; use 302 so its destination can change. +# Leave the destination fragment-free so browsers preserve the original hash. +# https://www.rfc-editor.org/rfc/rfc9110.html#section-10.2.2 +/config /guide/configuration 302 +/config/ /guide/configuration 302 diff --git a/website/rstack.config.ts b/website/rstack.config.ts index c3896e3b..1a539e43 100644 --- a/website/rstack.config.ts +++ b/website/rstack.config.ts @@ -53,6 +53,7 @@ define.doc({ ...(process.env.ZEPHYR_DEPLOY === 'true' ? [withZephyr({ target: 'web' })] : []), + // Keep a fallback for local dev/preview and deployments without Pages redirects. pluginClientRedirects({ redirects: [ { From f7998848650e8735606352b0fb96c901069bd09c Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 6 Nov 2026 14:27:57 +0800 Subject: [PATCH 2/2] docs(website): remove redirect specification link --- website/docs/public/_redirects | 1 - 1 file changed, 1 deletion(-) diff --git a/website/docs/public/_redirects b/website/docs/public/_redirects index 1d65b4e4..dcb6d6c1 100644 --- a/website/docs/public/_redirects +++ b/website/docs/public/_redirects @@ -1,5 +1,4 @@ # Keep /config as a stable entry point; use 302 so its destination can change. # Leave the destination fragment-free so browsers preserve the original hash. -# https://www.rfc-editor.org/rfc/rfc9110.html#section-10.2.2 /config /guide/configuration 302 /config/ /guide/configuration 302