Skip to content

Commit 67dd348

Browse files
fix: add NODE_OPTIONS to default pass through env vars (#8353)
### Description [`NODE_OPTIONS`](https://nodejs.org/api/cli.html#node_optionsoptions) can do many things, but it is especially used to bump heap limits. With env mode strict this can cause OOMs when using `turbo`. ### Testing Instructions 👀
1 parent 8a792a1 commit 67dd348

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/turborepo-lib/src/task_hash.rs

+1
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ impl<'a> TaskHasher<'a> {
465465
let default_env_var_pass_through_map =
466466
self.env_at_execution_start.from_wildcards(&[
467467
"SHELL",
468+
"NODE_OPTIONS",
468469
// Command Prompt casing of env variables
469470
"APPDATA",
470471
"PATH",

0 commit comments

Comments
 (0)