diff --git a/packages/web-server/src/env-var.ts b/packages/web-server/src/env-var.ts index acd34836..8a6887dc 100644 --- a/packages/web-server/src/env-var.ts +++ b/packages/web-server/src/env-var.ts @@ -4,8 +4,8 @@ config(); export function getEnvVar( varName: string, - defaultValue: string, - isHardDependency = false + defaultValue?: string, + isHardDependency?: boolean ): string { const val = process.env[varName]; if (!val) { @@ -19,5 +19,5 @@ export function getEnvVar( ); } } - return val || defaultValue; + return (val !== undefined ? val : defaultValue) || ""; }