DEV Community

Discussion on: How to Use Environment Variables (env) in ExpressJs

Collapse
 
cytim profile image
Tim Wong • Edited

Nice post! It's always my first line in server.js to init dotenv so everything else can consume the env-vars correctly.
I also published "A smarter dotenv for Node.js" recently to make .env more useful. Hope you will like it ;)

Collapse
 
geraldmuvengei06 profile image
Gerald

Awesome, I'll check it out