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(){})).
I was just wondering if i can find out what is the current value
Share
Try
process.env.NODE_ENVIt should do the trick.