📜  节点如何设置环境变量 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:08.280000             🧑  作者: Mango

代码示例1
// get an environment variableexport const token = process.env['API_TOKEN'];// set an environment variable at runtimeprocess.env['RANDOM_ID'] = Math.random();