Skip to content

Commit 3ce0469

Browse files
authored
fix: ensure required env var can't be an empty string (#1960)
1 parent a391280 commit 3ce0469

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/config/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class ExpectedEnvVariable extends Error {
1313
*/
1414
export function requiredEnvVar(name: string) {
1515
const varValue = process.env[name];
16-
if (varValue === undefined) {
16+
if (varValue === undefined || varValue === '') {
1717
throw new ExpectedEnvVariable(name);
1818
}
1919
return varValue;

0 commit comments

Comments
 (0)