1.下载dotenv包
yarn add dotenv
导入require("dotenv).config()
2.在.env中导入需要配置的信息,用于其它地方调用使用,例如:
3.调用使用方法
process.env.参数名称
例如: