Skip to content

Commit c3aa0bc

Browse files
fix: respect explicit wb env (#552)
Co-authored-by: WillBooster (Codex CLI) <agent@willbooster.com>
1 parent ff335b2 commit c3aa0bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/wb/src/project.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ export class Project {
8989
for (const [envPath, count] of envPathAndLoadedEnvVarCountPairs) {
9090
console.info(`Loaded ${count} environment variables from ${envPath}`);
9191
}
92-
// Overwrite environment variables even though this behavior is non-standard
93-
// because `bun wb ...` will load .env and .env.local before `wb` loads other variables.
94-
return { ...process.env, ...envVars };
92+
return { ...envVars, ...process.env };
9593
}
9694

9795
@memoizeOne

0 commit comments

Comments
 (0)