-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support for dotenv (.env
) files
#461
Labels
Comments
I think we should make this issue in a more generic way, not just loading dotenv file. I suggest doing it similar to the way docker did: load env variables from .config file. |
You can use this require('dotenv').config({ path: __dirname+'/.env' }); |
can i work on this feature? |
latest node support |
This was referenced Jan 5, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Support for dotenv files
Actual Behavior
Do not support dotenv files
Motivation
These files are specially useful in order to avoid to type same environment variables multiple times.
In some cases, it also can be helpful to track them with a version controller.
That being said,
zx
could support this behaviour because:.env
files in any folderpackage.json
and install additional packages.env
fileRelated
#327
The text was updated successfully, but these errors were encountered: