📜  如何设置环境变量 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:56.442000             🧑  作者: Mango

代码示例1
npm install dotenv --save

Next add the following line to your app: "require('dotenv').config()"

Then create a .env file at the root directory of your application 
and add the variables to it.