From ca461f9e83b2c692442bb7e20c2f9e3670d2ef6a Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:19:21 -0700 Subject: fix loading env from `.env.production` and friends (#4630) * reload conditional vars * test * change `get` and `put` methods * dont clone empty env variables --- src/cli/run_command.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cli') 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 {}; } } } -- cgit v1.2.3