-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix React channel env missing in custom server #49168
Conversation
Failing test suitesCommit: 0bba771
Expand output● app dir - navigation › redirect › components › should redirect to external url, initiating only once
Read more about building and testing Next.js in contributing.md. |
(You wrote "Fixes #49168" but that's a link to this PR.) |
Thanks @sophiebits, fixed. My clipboard is too slow. |
The failing test is strange, can't reproduce it locally with both dev and prod. Will take a look later. |
@sophiebits I saw your comments
and it's now always This is interesting as I guess there might be some tests accidentally using the custom server mode and causes some inconsistency. |
sure! seems fine |
Found this one being a bit random during dev, but it's trivial. See discussions: #49168 (comment)
I can confirm CodeSandbox: https://codesandbox.io/p/sandbox/quirky-bell-o5tl8l?file=%2Fserver.mjs |
Fixes #48948 (repro). When running inside a custom server with app dir, we should always opt into the prebundled React with correct channels.
Thanks @karlhorky for help testing it!
Fixes #49169 too.