Skip to content

Commit 98d875c

Browse files
committed
Pass PATH
1 parent 59224f3 commit 98d875c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/next-api/benches/hmr.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
extern crate turbo_tasks_malloc;
22

33
use std::{
4+
env,
45
fs::{create_dir_all, write},
56
mem::forget,
67
path::{Path, PathBuf},
@@ -183,7 +184,10 @@ impl HmrBenchmark {
183184
project_path: RcStr::from(project_path.clone()),
184185
next_config: load_next_config(),
185186
js_config: RcStr::from("{}"),
186-
env: vec![],
187+
env: vec![(
188+
RcStr::from("PATH"),
189+
RcStr::from(env::var("PATH").unwrap_or_default()),
190+
)],
187191
define_env: DefineEnv {
188192
client: vec![],
189193
edge: vec![],

0 commit comments

Comments
 (0)