Skip to content

Commit 35786f5

Browse files
committed
feat(engine): initialize environment variables from parent process
1 parent fd7a5bf commit 35786f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core/src/engine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,8 +1651,8 @@ impl Engine {
16511651
state: &HashMap<String, serde_json::Value>,
16521652
bundle_path: &Option<PathBuf>,
16531653
) -> Result<()> {
1654-
// Prepare environment variables
1655-
let mut env = HashMap::new();
1654+
// Start with a copy of the parent process's environment
1655+
let mut env: HashMap<String, String> = std::env::vars().collect();
16561656

16571657
// Add node environment variables
16581658
for (key, value) in &node.env {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy