Skip to content

Commit

Permalink
fix: add NODE_OPTIONS to default pass through env vars (#8353)
Browse files Browse the repository at this point in the history
### 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

👀
  • Loading branch information
chris-olszewski authored Jun 6, 2024
1 parent 8a792a1 commit 67dd348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/turborepo-lib/src/task_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ impl<'a> TaskHasher<'a> {
let default_env_var_pass_through_map =
self.env_at_execution_start.from_wildcards(&[
"SHELL",
"NODE_OPTIONS",
// Command Prompt casing of env variables
"APPDATA",
"PATH",
Expand Down

0 comments on commit 67dd348

Please sign in to comment.