Closed gabrielDevlog closed 4 years ago
What about this MR ? Is this fixed now ?
@GitBalou sorry for the late response to this.
I believe the library is working as designed. There is an option to overrideProcessEnv
which will override the values in process.env
with the values from .env
and .env.defaults
. Also, looking at the submitted code you sent, this returns the actual process.env variables mixed with the .env
values.
Not sure exactly what you're trying to accomplish. If you set the overrideProcessEnv
to true, this will make sure that all variables in the .env
are in the process.env
variables as well as overwrite them. Otherwise, it will not. By design, the returned config data does not contain the process.env
variables (which your commit changes)
Can you give me more details on what you're trying to accomplish and I may be able to help out.
Why Using cli, process.env is overrided by .env.defaults. Expected behavior is the opposite.