process.env.NODE_ENV is undefined

后端 未结 13 1700
南旧
南旧 2020-11-28 18:26

I\'m trying to follow a tutorial on NodeJs. I don\'t think I missed anything but whenever I call the process.env.NODE_ENV the only value I get back is undefine

相关标签:
13条回答
  • 2020-11-28 19:07

    As early as possible in your application, require and configure dotenv.

    require('dotenv').config()

    0 讨论(0)
提交回复
热议问题