You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One route is throwing error, because server-runtime is using globally set dev server hook, so it is impossible to have two (or more) remix apps in one project.
Reproduction
https://github.com/Mordred/multi-remix
Open https://localhost:3000/admin/ and https://localhost:3000/blog/
System Info
Used Package Manager
npm
Expected Behavior
Both routes should be working correctly
Actual Behavior
One route is throwing error, because
server-runtime
is using globally set dev server hook, so it is impossible to have two (or more) remix apps in one project.https://github.com/remix-run/remix/blob/main/packages/remix-server-runtime/dev.ts#L41
https://github.com/remix-run/remix/blob/main/packages/remix-dev/vite/plugin.ts#L1317
Second dev server is rewriting hook for the first one which will then crash.
The text was updated successfully, but these errors were encountered: