Conversation
Contributor
|
View your CI Pipeline Execution ↗ for commit 497b4bc
☁️ Nx Cloud last updated this comment at |
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for nx-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
## Current Behavior All 1200+ redirect rules are processed by the Next.js serverless function via the `redirects()` config. This means every redirect request requires a cold start of the serverless function, contributing to outages. ## Expected Behavior Redirects are handled at the Netlify CDN edge via a plain `_redirects` file, which is faster and doesn't depend on the Next.js serverless function being healthy. Rewrites (Astro docs proxy) remain in next.config.js as they require server-side processing. ## Related Issue(s) Fixes DOC-415
barbados-clemens
approved these changes
Feb 25, 2026
FrozenPandaz
pushed a commit
that referenced
this pull request
Feb 26, 2026
…#34612) ## Current Behavior All 1,200+ redirect rules are processed by the Next.js serverless function via the `redirects()` config in `next.config.js`. Every redirect request requires a cold start of the serverless function, which contributed to the 10-minute outage reported in DOC-415. ## Expected Behavior Redirects are handled at the Netlify CDN edge via a plain `_redirects` file, which is faster and doesn't depend on the Next.js serverless function being healthy. - Converted all redirect rules from `redirect-rules.js` and `redirect-rules-docs-to-astro.js` into Netlify `_redirects` format (1,231 rules) - Expanded Next.js regex group patterns (e.g. `/(l|latest)/...`) into individual Netlify rules since Netlify doesn't support regex - Converted `:path*` wildcards to Netlify `*`/`:splat` syntax - Rewrites (Astro docs proxy) remain in `next.config.js` as they require server-side processing - Original JS redirect files kept for reference (can be removed in follow-up) ## Related Issue(s) Fixes DOC-415 (cherry picked from commit 4c3812f)
FrozenPandaz
pushed a commit
that referenced
this pull request
Feb 26, 2026
…#34612) ## Current Behavior All 1,200+ redirect rules are processed by the Next.js serverless function via the `redirects()` config in `next.config.js`. Every redirect request requires a cold start of the serverless function, which contributed to the 10-minute outage reported in DOC-415. ## Expected Behavior Redirects are handled at the Netlify CDN edge via a plain `_redirects` file, which is faster and doesn't depend on the Next.js serverless function being healthy. - Converted all redirect rules from `redirect-rules.js` and `redirect-rules-docs-to-astro.js` into Netlify `_redirects` format (1,231 rules) - Expanded Next.js regex group patterns (e.g. `/(l|latest)/...`) into individual Netlify rules since Netlify doesn't support regex - Converted `:path*` wildcards to Netlify `*`/`:splat` syntax - Rewrites (Astro docs proxy) remain in `next.config.js` as they require server-side processing - Original JS redirect files kept for reference (can be removed in follow-up) ## Related Issue(s) Fixes DOC-415 (cherry picked from commit 4c3812f)
Contributor
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Current Behavior
All 1,200+ redirect rules are processed by the Next.js serverless function via the
redirects()config innext.config.js. Every redirect request requires a cold start of the serverless function, which contributed to the 10-minute outage reported in DOC-415.Expected Behavior
Redirects are handled at the Netlify CDN edge via a plain
_redirectsfile, which is faster and doesn't depend on the Next.js serverless function being healthy.redirect-rules.jsandredirect-rules-docs-to-astro.jsinto Netlify_redirectsformat (1,231 rules)/(l|latest)/...) into individual Netlify rules since Netlify doesn't support regex:path*wildcards to Netlify*/:splatsyntaxnext.config.jsas they require server-side processingRelated Issue(s)
Fixes DOC-415