我了解如何设置此处记录的环境变量,但是我不了解的是如何检测应用程序所在的环境。
require()或import *.env.js并检查NODE_ENV 。
require()
import
*.env.js
NODE_ENV
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.