Skip to content
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

chore(rsc): Remove Node RSC worker #11449

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Sep 6, 2024

For production (yarn rw serve) no Node worker is needed.
We had it because it was a way to do RSC in the same process as SSR and have different loader conditions for RSC and SSR (setting react-server for RSC).
But this shouldn't be needed for prod, because all files are already built with the correct loader condition, so all imports are already resolved (as long as you include everything needed in the analyze/build phase).
So - getting rid of the worker here is cleaning up really old massive tech dept. And being able to run without the worker also means we've finally gotten our build process set up and configured correctly!

@Tobbe Tobbe added release:chore This PR is a chore (means nothing for users) experimental This PR relates to only experimental feature(s) labels Sep 6, 2024
@Tobbe Tobbe added this to the next-release-patch milestone Sep 6, 2024
@Tobbe Tobbe added the changesets-ok Override the changesets check label Sep 6, 2024
@Tobbe Tobbe force-pushed the tobbe-rsc-remove-worker branch 5 times, most recently from 3315b2e to 2af5b15 Compare September 6, 2024 14:05
@Tobbe Tobbe changed the title chore(rsc): Remove Node Worker chore(rsc): Remove Node RSC worker Sep 6, 2024
@Tobbe Tobbe enabled auto-merge (squash) September 6, 2024 14:22
@Tobbe Tobbe disabled auto-merge September 6, 2024 14:35
@Tobbe Tobbe merged commit aa1e039 into redwoodjs:main Sep 6, 2024
50 checks passed
@Tobbe Tobbe deleted the tobbe-rsc-remove-worker branch September 6, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check experimental This PR relates to only experimental feature(s) release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants