From 4c3e68ff4aa06d57a121cfd67911bc0a920e39e1 Mon Sep 17 00:00:00 2001 From: huseeiin <122984423+huseeiin@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:50:42 +0300 Subject: [PATCH] Update core.ts fix #221 --- src/core.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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