Top "Dotenv" questions

This tag is for questions about the Dotenv Node.

dotenv file is not loading environment variables

I have .env file at root folder file NODE_ENV=development NODE_HOST=localhost NODE_PORT=4000 NODE_HTTPS=false DB_…

javascript node.js dotenv
Environment variable with dotenv and TypeScript

I create this .env file: TYPE=xxx HOST=xxx, PORT=xxx, USERNAME=xxx, PASSWORD=xxx, DATABASE=xxx, in my file …

javascript node.js typescript nestjs dotenv
Why are my custom process.env not working within dotenv?

Learning that it is a bad practice to include API secret keys I've done some research and trying to learn …

node.js environment-variables local dotenv
Toggle between multiple .env files like .env.development with node.js

I want to use separate .env files for each mode (development, production, etc...). When working on my vue.js projects, …

node.js express environment-variables dotenv
While running the script throws cannot find module 'dotenv'

While loading the .env file to pass env values to the getToken.js script in the cypress root folder throws …

puppeteer cypress dotenv
How to add comments to .env file?

I am using dotenv module to load environment variables from .env file. .env: # config DAILY_REPORT_SCHEDULE='*/1 * * * *' PORT=8080 …

node.js dotenv
NestJS - How to use .env variables in main app module file for database connection

I am working on my first NestJS application, which was working fine with hardcoded database connecting string in app.module.…

javascript node.js environment-variables nestjs dotenv
I have installed python-dotenv but python cannot find it

i am using dotenv in a flask project, and have also tested this in a dumbed down test environment as …

python flask dotenv
.env variable returns undefined in React JS app

I am working on this react app and thinking of adding some environment variables inside, this is what I've done: …

javascript reactjs powershell environment-variables dotenv
Dotenv-webpack in production?

I am trying to use the dotenv-webpack plugin. This works great locally. But fails when I deploy to Heroku. I …

reactjs heroku webpack dotenv