Skip to content

Commit 6f1a596

Browse files
committed
Don't delete env vars with falsy values
1 parent 15c7b7b commit 6f1a596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/v3/workers/populateEnv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function populateEnv(
5757
if (previousEnv) {
5858
// if there are any keys in previousEnv that are not in envObject, remove them from process.env
5959
for (const key of Object.keys(previousEnv)) {
60-
if (!envObject[key]) {
60+
if (!Object.prototype.hasOwnProperty.call(envObject, key)) {
6161
delete process.env[key];
6262
}
6363
}

0 commit comments

Comments
 (0)