Skip to content

Commit f520e00

Browse files
committed
Fix null values messing with env import
1 parent 21f7d5d commit f520e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function loadFromEnv(config: SBSConfig, prefix = "") {
165165
const fullKey = (prefix ? `${prefix}_` : "") + key;
166166
const data = config[key];
167167

168-
if (typeof data === "object" && !Array.isArray(data)) {
168+
if (data && typeof data === "object" && !Array.isArray(data)) {
169169
loadFromEnv(data, fullKey);
170170
} else if (process.env[fullKey]) {
171171
const value = process.env[fullKey];

0 commit comments

Comments
 (0)