Skip to content

Commit

Permalink
fix(react-email): NODE_ENV for emails as "PRODUCTION"
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed Sep 13, 2024
1 parent 7d0f021 commit 3c3bbd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-ravens-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": patch
---

Fix NODE_ENV for emails as "PRODUCTION" instead of "DEVELOPMENT"
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export const startDevServer = async (
// this is the most reliable way of communicating these paths through
process.env = {
...process.env,
NODE_ENV: "development",
...getEnvVariablesForPreviewApp(
// If we don't do normalization here, stuff like https://github.com/resend/react-email/issues/1354 happens.
path.normalize(emailsDirRelativePath),
Expand Down

0 comments on commit 3c3bbd3

Please sign in to comment.