I was just wondering if i can find out what is the current value of NODE_ENV (i.e. either development or production) in a express code (so i can't use app.configure('production' function(){})).
NODE_ENV
app.configure('production' function(){})
Try process.env.NODE_ENV
process.env.NODE_ENV
It should do the trick.
2.1m questions
2.1m answers
60 comments
57.0k users