Skip to content

Commit 4e629a4

Browse files
authored
docs(website): redirect config requests on Cloudflare Pages (#618)
1 parent f0ae66d commit 4e629a4

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎website/docs/public/_redirects‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Keep /config as a stable entry point; use 302 so its destination can change.
2+
# Leave the destination fragment-free so browsers preserve the original hash.
3+
/config /guide/configuration 302
4+
/config/ /guide/configuration 302

‎website/rstack.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ define.doc({
5353
...(process.env.ZEPHYR_DEPLOY === 'true'
5454
? [withZephyr<UserConfig>({ target: 'web' })]
5555
: []),
56+
// Keep a fallback for local dev/preview and deployments without Pages redirects.
5657
pluginClientRedirects({
5758
redirects: [
5859
{

0 commit comments

Comments
 (0)