Skip to content

Why not use next as a devDependency? #1328

Answered by gabrielmfern
av-erencelik asked this question in Q&A
Discussion options

You must be logged in to vote

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 the code 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:

process.cwd(),
),
};
const app = next({
// passing in env here does not get the environment variables there
dev: true,

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gabrielmfern
Comment options

@av-erencelik
Comment options

Answer selected by av-erencelik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants