How do I setup the dotenv file in Node.js?

前端 未结 30 1213

I am trying to use the dotenv NPM package and it is not working for me. I have a file config/config.js with the following content:



        
30条回答
  •  孤街浪徒
    2020-12-07 14:37

    On some operating sytems (mostly some linux distros, I am looking at you raspbian), .env files don't work. rename them and import that

提交回复
热议问题