- 替换 dotenv 引入方式,使用 destructuring 导入 config 函数- 调用 config()函数以加载环境变量
-移除冗余的 import('dotenv').config() 语句
|
||
|---|---|---|
| .. | ||
| messages.js | ||
| mongodbConfig.js | ||
- 替换 dotenv 引入方式,使用 destructuring 导入 config 函数- 调用 config()函数以加载环境变量
-移除冗余的 import('dotenv').config() 语句
|
||
|---|---|---|
| .. | ||
| messages.js | ||
| mongodbConfig.js | ||