Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove execution of loading env files #193

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

cre8
Copy link

@cre8 cre8 commented May 1, 2024

Loading the env variables inside the express support package can cause side effects when you want to load the variables at an earlier point and use them for validation. Then you get warnings like:

dotenv-flow: "PORT" is already defined in `process.env` and will not be overwritten
dotenv-flow: "NODE_ENV" is already defined in `process.env` and will not be overwritten

I would prefer that I am able to load my own variables inside, there could be the case that I don't want the .env file included, but e.g. example.env, but it will because of the express package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant