Why not use next as a devDependency? #1328
-
I dont understand the usage of next as a normal dependency. It increases the image size at least 250 300 mb when i dockerized my node.js api. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Currently, we do not build the Next app before publishing, something in our to-do list is to have this in a better way. You can see this from the The only thing to figure out how to run the Next app, while still avoiding having react-email/packages/react-email/src/cli/utils/preview/start-dev-server.ts Lines 123 to 134 in 20f560b Having it not but also forces us into having the |
Beta Was this translation helpful? Give feedback.
Currently, we do not build the Next app before publishing, something in our to-do list is to have this in a better way.
I don't think it would be very hard to do otherwise either.
You can see this from the
src/
directory on thecode
tab for the NPM package https://www.npmjs.com/package/react-email?activeTab=code.The only thing to figure out how to run the Next app, while still avoiding having
next
as a dependency, is changing this:react-email/packages/react-email/src/cli/utils/preview/start-dev-server.ts
Lines 123 to 134 in 20f560b