fix loading env from .env.production and friends (#4630)

* reload conditional vars

* test

* change `get` and `put` methods

* dont clone empty env variables
This commit is contained in:
Dylan Conway
2023-09-11 17:19:21 -07:00
committed by GitHub
parent 9c4765f616
commit ca461f9e83
9 changed files with 111 additions and 41 deletions

View File

@@ -670,7 +670,7 @@ pub const VirtualMachine = struct {
}
if (map.map.fetchSwapRemove("BUN_INTERNAL_IPC_FD")) |kv| {
if (std.fmt.parseInt(i32, kv.value, 10) catch null) |fd| {
if (std.fmt.parseInt(i32, kv.value.value, 10) catch null) |fd| {
this.initIPCInstance(fd);
} else {
Output.printErrorln("Failed to parse BUN_INTERNAL_IPC_FD", .{});