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
The @nx/node:setup-docker generator expects a traditional bundler format. but in the new updated vite compiled version of remix apps, you get two folders in your build/dist folder:
apps
|- myApp
|- build
|- client
|- server
to run these, you need to either add @remix-run/serve so you get remix-serve cli, and then run remix-serve <pathToBuildDir>/server/index.js
OR if you want to use express, you need to add a server.mjs file in the root of the project, thoug I don't know how to make this work with nx dev etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The
@nx/node:setup-docker
generator expects a traditional bundler format. but in the new updated vite compiled version of remix apps, you get two folders in your build/dist folder:|- myApp
|- build
|- client
|- server
to run these, you need to either add
@remix-run/serve
so you getremix-serve
cli, and then runremix-serve <pathToBuildDir>/server/index.js
OR if you want to use express, you need to add a
server.mjs
file in the root of the project, thoug I don't know how to make this work withnx dev
etc.I really find the docs lacking/outdated
Beta Was this translation helpful? Give feedback.
All reactions