DEV Community

Discussion on: Environment variables in Node.js. The Right way!

Collapse
 
espinella8 profile image
espinella8

If I used the same server for development and production, I'd have to not install dotenv as a dev dependency and not use server variables, just 2 different .env files, one for each prod/dev application folder.