Skip to content

Commit 17ba234

Browse files
authored
correct validation condition
1 parent 8d41836 commit 17ba234

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/envVarCheck.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ validateEnv();
3333
* ---
3434
*/
3535
export default function validateEnv (){
36-
const env: env = loadEnv({}, false);
37-
console.log(env);
38-
const missingEnvVars = Object.keys(env).filter((key) => !env[key] && env[key] != '');
36+
const envLoadedFromProcess: env = loadEnv({}, false);
37+
console.log(envLoadedFromProcess);
38+
const missingEnvVars = Object.keys(envLoadedFromProcess).filter((key) => envLoadedFromProcess[key] == '');
3939

4040
// Logging missing environment variables and exit if any are missing
4141
if (missingEnvVars.length > 0) {

0 commit comments

Comments
 (0)