-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(env): prevent env expand on process.env (#11213)
- Loading branch information
Showing
4 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,6 +127,9 @@ | |
"acorn": "*" | ||
} | ||
} | ||
}, | ||
"patchedDependencies": { | ||
"dotenv-expand@9.0.0": "patches/dotenv-expand@9.0.0.patch" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/lib/main.js b/lib/main.js | ||
index c873cc77229d4cd0cf9de98ae0970b25d89f312f..ddf570558e985760efde52af37a41b56282d30a6 100644 | ||
--- a/lib/main.js | ||
+++ b/lib/main.js | ||
@@ -50,9 +50,10 @@ function expand (config) { | ||
config.parsed[configKey] = _interpolate(value, environment, config) | ||
} | ||
|
||
- for (const processKey in config.parsed) { | ||
- environment[processKey] = config.parsed[processKey] | ||
- } | ||
+ // PATCH: don't write to process.env | ||
+ // for (const processKey in config.parsed) { | ||
+ // environment[processKey] = config.parsed[processKey] | ||
+ // } | ||
|
||
return config | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.