-
-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Labels
wontfixThis will not be worked onThis will not be worked on
Description
The documentation for this library mentions that it follows the dotenv-flow
for multi-environment variable loading. (link)
However, I've noticed a minor difference when compared to the dotenv-flow
.
According to the dotenv-flow
's variables overwriting priority, the variable merging order should be:
.env
.env.local
.env.development
.env.development.local
- Command line variables
But in practice, when NODE_ENV='development'
, the order of variable merging in this library seems to be:
.env
.env.development
.env.local
.env.development.local
- Command line variables
This had lead some confusions, for instance, mode-specific variables being unexpectedly overwritten by variables from the .env.local
file.
broncha
Metadata
Metadata
Assignees
Labels
wontfixThis will not be worked onThis will not be worked on