Repository navigation
fix(nextjs): Disable managed tunnel interception on Vercel - #27019
Merged
Merged
Conversation
Co-Authored-By: GPT-6 <codex@openai.com>
Co-Authored-By: GPT-6 <codex@openai.com>
Contributor
Optional E2E testsAll optional checks were successful. 7 successful. See the run. Successful checks
|
Contributor
size-limit report 📦Compared: 5a924d3 (PR test merge using develop at 14e110f) Against: 14e110f (develop) · base run #68441 ✅ Baseline matches: this diff contains only this PR's changes.
|
Member
Author
|
@logaretm seems to me that only fixed it for the |
Member
|
Right, I forgot about that, if youR fix addresses both then revert the changes in that other PR. |
Member
Author
|
@logaretm old changes are still needed as long as |
Member
|
Then all good! |
52 tasks done
3 tasks done
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.
What
Disable early tunnel interception by default for Next.js on Vercel deployments, letting the generated Next.js route handle tunnel requests.
Why
The early hook prevents the application handler from running, so Vercel cannot detect when to end the function invocation. This is a minimal fix for Next.js. I suspect that this might be a broader issue with other frameworks also affected by this if deployed to Vercel? The issue is that we cannot blanket disable this option for all frameworks if deployed to Vercel, since there are frameworks that rely on this hook and do not set up a tunnel handler iiuc.
Closes: #26991