1
var config = require('env/' + process.env.NODE_ENV),

Trying to integrate my upload system using dropzone js and aws in nodejs. But the first line already confused me. Where does that thing coming from and what does it means?

https://gist.github.com/francolaiuppa/76f4b60cd46a15d325cf

Nichole A. Miler
  • 1,281
  • 2
  • 11
  • 21
  • 2
    Possible Dup of [What is NODE_ENV in Express?](http://stackoverflow.com/questions/16978256/what-is-node-env-in-express) – Tushar Jan 03 '16 at 11:42

1 Answers1

0

From the github link you have shared, it is a controller code in express.js

So considering that

process.env.NODE_ENV will return the value of environment variable NODE_ENV set by express.js

Vineeth Guna
  • 388
  • 4
  • 10