Skip to content
Merged
Prev Previous commit
rephrase sentences
Co-authored-by: Ruy Adorno <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>
  • Loading branch information
AugustinMauroy and ruyadorno authored Dec 16, 2024
commit 60239c44480789983c3d7a51e020809ca2dbb454
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ node --env-file=.env --env-file=.development.env app.js

> Note: if the same variable is defined in the environment and in the file, the value from the environment takes precedence.

But there may be a problem: if the file doesn't exist, it will return an error.
To avoid this, you can use the `--env-file-if-exists` flag.
In case you want to optionally read from a `.env` file, it's possible to avoid
throwing an error if the file is missing using the `--env-file-if-exists` flag.

```bash
node --env-file-if-exists=.env app.js
Expand Down
Loading