Consolidate route rewrites to netlify.toml and enforce in CI#10
Consolidate route rewrites to netlify.toml and enforce in CI#10harbourviewcompany-create wants to merge 1 commit into
Conversation
✅ Deploy Preview for wurx-can ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Deploy Preview for wurx-otta ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Motivation
_redirectsandnetlify.tomlto simplify maintenance.Description
netlify.tomlas the single source of truth for route rewrites and removed the duplicate rewrite lines from_redirects, leaving a comment pointing maintainers tonetlify.toml.README.mddeploy notes to state that route rewrites are maintained innetlify.toml([[redirects]]).scripts/check-site.jsto remove_redirectsfrom the required files list, add arequiredRewritesarray, add anescapeRegExphelper, verify each required rewrite exists innetlify.tomlwithstatus = 200, and fail if those same rewrite lines appear in_redirects..htmlpages so public routes still resolve to the expected pages.Testing
npm run check(which runsnode scripts/check-site.js) and it passed with no failures.scripts/check-site.jswas exercised by the same check and verified it detects presence/absence of the expected rewrites and duplicates as intended.Codex Task