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
…hen using --watch #558 (#564)
* fix: prevented .env values from overwriting existing env values when using --watch #558
* fix: prevented .env values from overwriting existing env values when using --watch #558
* test: world because when making a restart the server still passes the arguments that change the environment variable
If you start a fastify app with the fastify cli and the watch parameter, the environment variable precedence is changed.
Example
So if you have a
.env
file withand you run
then
process.env.MY_ENV_VAR
will be 'bar'. Perfect! But if you run it with the watch parameter likethen
process.env.MY_ENV_VAR
will be 'foo'.Suggestion
I think it has something to do with this line of code.
The text was updated successfully, but these errors were encountered: