We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a391280 commit 3ce0469Copy full SHA for 3ce0469
1 file changed
src/config/helpers.ts
@@ -13,7 +13,7 @@ export class ExpectedEnvVariable extends Error {
13
*/
14
export function requiredEnvVar(name: string) {
15
const varValue = process.env[name];
16
- if (varValue === undefined) {
+ if (varValue === undefined || varValue === '') {
17
throw new ExpectedEnvVariable(name);
18
}
19
return varValue;
0 commit comments