Skip to content

Commit

Permalink
fix: make sure NODE_ENV is not thrown away
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Jun 25, 2023
1 parent 91cb9e5 commit c19acc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-items-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@t3-oss/env-nextjs": patch
---

fix: ensure NODE_ENV is present in build output
1 change: 1 addition & 0 deletions packages/nextjs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export function createEnv<
: {
...process.env,
...opts.experimental__runtimeEnv,
NODE_ENV: process.env.NODE_ENV,
};

return createEnvCore<ClientPrefix, TServer, TClient>({
Expand Down

1 comment on commit c19acc0

@vercel
Copy link

@vercel vercel bot commented on c19acc0 Jun 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

t3-env – ./

t3-env.vercel.app
t3-env-git-main-t3-oss.vercel.app
t3-env-t3-oss.vercel.app
env.t3.gg

Please sign in to comment.