-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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(DEV_SSR): set NODE_ENV to production for render-html worker process instead of pointing externals to production react #29620
Conversation
You should try with the |
@wardpeet which branch do I make changes to v2 on? Just releases/2.32? Will test against v3 as well. |
Yes :) |
Does it trully work? |
0f4b0da
to
6b2c840
Compare
@pieh quite possibly not :-D I thought of a much simpler approach — we render the SSR in a worker so just set the |
back port of #29620 to v2 Fix #28138 (comment) Set `NODE_ENV` to `production` in the child worker that does the SSR in dev.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Just for paper trail - I used https://github.com/pieh/dev-ssr-multi-react-hooks as reproduction for issue this is solving (in case someone |
#29683) back port of #29620 to v2 Fix #28138 (comment) Set `NODE_ENV` to `production` in the child worker that does the SSR in dev. Co-authored-by: Ward Peeters <[email protected]> Co-authored-by: Matt Kane <[email protected]>
Fix #28138 (comment)
Set
NODE_ENV
toproduction
in the child worker that does the SSR in dev.