Skip to content

Commit

Permalink
Update core.ts
Browse files Browse the repository at this point in the history
fix #221
  • Loading branch information
huseeiin authored Apr 23, 2024
1 parent d444819 commit 4c3e68f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ export function getSanitizedEnv<S>(
// If no value was given and default/devDefault were provided, return the appropriate default
// value without passing it through validation
if (rawValue === undefined) {
// Use devDefault values only if NODE_ENV was explicitly set, and isn't 'production'
const usingDevDefault =
rawNodeEnv && rawNodeEnv !== 'production' && spec.hasOwnProperty('devDefault')
rawNodeEnv !== 'production' && spec.hasOwnProperty('devDefault')
if (usingDevDefault) {
cleanedEnv[k] = spec.devDefault

Expand Down

0 comments on commit 4c3e68f

Please sign in to comment.