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
Using the default remix templates, running npm ci when NODE_ENV=production, or when using the --production flag, installation fails because the postinstall hook contains remix setup node, and remix comes from @remix-run/dev, which is, by default, a devDependency. I looked into what the remix setup node command was doing, and while I don't completely understand it, it seems to break the way npm is intended to work. Would these steps be better suited to a build step or similar?
Thoughts?
How does the remix team suggest building production Docker images? Install with dev dependencies? Move @remix-run/dev to a regular dependency?
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
Uh oh!
There was an error while loading. Please reload this page.
-
See #205
Using the default remix templates, running
npm ci
whenNODE_ENV=production
, or when using the--production
flag, installation fails because thepostinstall
hook containsremix setup node
, andremix
comes from@remix-run/dev
, which is, by default, adevDependency
. I looked into what theremix setup node
command was doing, and while I don't completely understand it, it seems to break the way npm is intended to work. Would these steps be better suited to a build step or similar?Thoughts?
How does the remix team suggest building production Docker images? Install with dev dependencies? Move
@remix-run/dev
to a regular dependency?Beta Was this translation helpful? Give feedback.
All reactions