Skip to content

Commit

Permalink
Respect passed in NODE_ENV
Browse files Browse the repository at this point in the history
7eb68af#diff-c5c5ee3ee563e33630e1ad83f07d66cb99b9be9a662fa8f4f9d7a6d43e98b7d0

This commit caused `NODE_ENV` to no longer be respected and always become `development`

This change will respect `NODE_ENV` and default to `development` if nothing is passed in.
  • Loading branch information
AshotN authored and gabrielmfern committed Nov 13, 2024
1 parent a21047b commit 67e2022
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ export const startDevServer = async (
// these environment variables are used on the next app
// this is the most reliable way of communicating these paths through
process.env = {
...process.env,
NODE_ENV: 'development',
...process.env,
...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 67e2022

Please sign in to comment.