diff --git a/src/core.ts b/src/core.ts index 5c37ec4..032d806 100644 --- a/src/core.ts +++ b/src/core.ts @@ -69,9 +69,8 @@ export function getSanitizedEnv( // 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