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
Hi,
I have a project in which I supply a .env.example with the default values for easier deployment.
Anyone who wants to deploy this project then has to copy this file to a .env file and adjust configuration as needed.
I was expecting dotenv to automatically load the .env file by default, but it seems .env.example is prioritized if present over .env.
How do I prevent this from happening ?
I tried supplying { path: ['.env'] } but even that doesn't seem to work.
The text was updated successfully, but these errors were encountered:
Apologies, you are indeed correct.
I tried in a clean environment (something I should have done in the first place) and I don't reproduce the issue. Something must be poisoning my main project's environment.
Hi,
I have a project in which I supply a .env.example with the default values for easier deployment.
Anyone who wants to deploy this project then has to copy this file to a .env file and adjust configuration as needed.
I was expecting dotenv to automatically load the .env file by default, but it seems .env.example is prioritized if present over .env.
How do I prevent this from happening ?
I tried supplying
{ path: ['.env'] }
but even that doesn't seem to work.The text was updated successfully, but these errors were encountered: