Repository navigation
Keep composed static redirects within the 2,000-rule limit - #148
Merged
Merged
Conversation
…tors redirect and matching www's 124-rule reserve
spacefast
Bot
temporarily deployed
to
preview/docs/fix-redirect-budget
November 24, 2026 22:50
Inactive
Contributor
|
All clear! No issues remaining. 🎉 1 issue already resolved
All required CI checks passed on
Select any unchecked box below to run or rerun that agent. Full resultsIndent Review Agent
|
…rations/ fallback splats
spacefast
Bot
temporarily deployed
to
preview/docs/fix-redirect-budget
November 24, 2026 22:58
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The composed Website + Docs site exceeded the 2,000 static redirect rule limit (
2,002 / 2,000) after#147added/space-connectors→/connectors(+ its.mdtwin).scripts/redirect-rules.mjsreserved120static rules for the Website, whereasspacefast/wwwdeclares124static rules, sodocsCI didn't catch the overflow before composition.Changes
/space-connectors→/connectors(and/space-connectors.md→/connectors.md) inredirects.tsso existing links from the earlier/space-connectorsroute keep resolving.compressOperationAliasesinscripts/redirect-rules.mjsto add one fallback splat per legacy/operations/namespace for its largest tag (spaces) while verifying more-specific prefixes against all original static rules so no rule is shadowed. This cuts Docs routing rules from1,963down to1,792(205static slots of headroom on the composed Website + Docs site).websiteStaticRuleReserveinscripts/redirect-rules.mjsfrom120to124and counted redirect rules (status !== 200) separately from Docs' mount rewrites soverifyRoutingBudgetmatches the composed Website + Docs static limit.scripts/redirect-rules.test.mjsto test the composed budget against124Website static redirects alongside Docs' standalone two-hop rewrite check.Verification
spacefast/docschecks passed (verify:generated,check,validate,build,test:docs40/40,audit,verify:public-safety,verify:prose,verify:routes).spacefast/wwwmain'ssf.jsoncviacompileRoutingFilesWasm:1,795static redirects,98dynamic redirects,1,893total,0errors, and0mismatches across all3,507generated redirects plus/docs/space-connectorsand/docs/space-connectors.md.