mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
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:
@@ -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", .{});
|
||||
|
||||
Reference in New Issue
Block a user