You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,12 @@ As of `v12.0.0` dotenv-expand no longer expands `process.env`.
174
174
175
175
If you need this ability, use [dotenvx](https://github.com/dotenvx/dotenvx) by shipping an encrypted .env file with your code - allowing safe expansion at runtime.
176
176
177
+
### How can I override an existing environment variable?
178
+
179
+
Use [dotenvx](https://github.com/dotenvx/dotenvx) as dotenv-expand does not support this.
180
+
181
+
dotenv-expand is a separate module (without knowledge of the loading of `process.env` and the `.env` file) and so cannot reliably know what to override.
0 commit comments