Environment variables in Node.js. The Right way!

PHOTO EMBED

Tue Jun 22 2021 05:38:41 GMT+0000 (UTC)

Saved by @jaimin #package.json

{
    ...
    "scripts": {
        "start": "NODE_ENV=production node bin/www.js"
    }
    ...
}
content_copyCOPY

Environment Variable setup for Development, Production and Stagging.

https://dev.to/numtostr/environment-variables-in-node-js-the-right-way-15ad