aboutsummaryrefslogtreecommitdiff
path: root/src/cli/run_command.zig
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-09-11 17:19:21 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-11 17:19:21 -0700
commitca461f9e83b2c692442bb7e20c2f9e3670d2ef6a (patch)
tree5128e56522c5c309ba6885648622e354c45a2e31 /src/cli/run_command.zig
parent9c4765f6167967f42afec3ce521776cafa9037ec (diff)
downloadbun-ca461f9e83b2c692442bb7e20c2f9e3670d2ef6a.tar.gz
bun-ca461f9e83b2c692442bb7e20c2f9e3670d2ef6a.tar.zst
bun-ca461f9e83b2c692442bb7e20c2f9e3670d2ef6a.zip
fix loading env from `.env.production` and friends (#4630)
* reload conditional vars * test * change `get` and `put` methods * dont clone empty env variables
Diffstat (limited to 'src/cli/run_command.zig')
-rw-r--r--src/cli/run_command.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig
index f637bfe6c..dcb5312b1 100644
--- a/src/cli/run_command.zig
+++ b/src/cli/run_command.zig
@@ -525,9 +525,9 @@ pub const RunCommand = struct {
if (root_dir_info.getEntries(0)) |dir| {
// Run .env again if it exists in a parent dir
if (this_bundler.options.production) {
- this_bundler.env.load(&this_bundler.fs.fs, dir, .production) catch {};
+ this_bundler.env.load(dir, .production) catch {};
} else {
- this_bundler.env.load(&this_bundler.fs.fs, dir, .development) catch {};
+ this_bundler.env.load(dir, .development) catch {};
}
}
}