-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Closed
Copy link
Labels
Description
- Versions: [email protected], [email protected]
nodemon -v
: 3.1.3- Operating system/terminal environment (powershell, gitshell, etc): bash
- Using Docker? What image: no
- Command you ran: APP_ENV=local npx nodemon index.js
Expected behaviour
Runtime environment variables expected to override the env
defined in config.
Actual behaviour
Envs defined in config.env
are always be set.
Seeing dotenv etc. this is not the expected behavior.
Steps to reproduce
- make files
nodemon.jsonindex.js{ "env": { "APP_ENV": "development" } }
console.log(process.env.APP_ENV)
- run nodemon with env variable
APP_ENV=local npx nodemon index.js
- see the output (ideally "local")
development
If applicable, please append the --dump
flag on your command and include the output here ensuring to remove any sensitive/personal details or tokens.