We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if(process.env.NODE_ENV === ‘production’) { fs.. // 去使用mock数据 }
来使用mock数据。那么 process.env.NODE_ENV 的值如何写入或者决定呢?// 通过NODE_ENV来设置环境变量,如果没有指定则默认为生产环境
var env = process.env.NODE_ENV || 'production';
当我们本地开发的时候可以通过脚本文件进行操作
export NODE_ENV=development
我们只需要启动服务的时候将它运行。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
来使用mock数据。那么 process.env.NODE_ENV 的值如何写入或者决定呢?// 通过NODE_ENV来设置环境变量,如果没有指定则默认为生产环境
当我们本地开发的时候可以通过脚本文件进行操作
我们只需要启动服务的时候将它运行。
The text was updated successfully, but these errors were encountered: