diff --git a/website/docs/public/_redirects b/website/docs/public/_redirects new file mode 100644 index 00000000..dcb6d6c1 --- /dev/null +++ b/website/docs/public/_redirects @@ -0,0 +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. +/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: [ {