vue.js - 如何在类星体中构建具有不同环境的项目
问题描述
我正在使用 dotenv 扩展来设置不同的环境。如何使用暂存和生产配置构建项目?
{
"@quasar/dotenv": {
"env_development": ".env.development",
"env_staging": ".env.staging",
"env_production": ".env.production",
"common_root_object": "none",
"create_env_files": true,
"add_env_to_gitignore": false
}
}
我已经尝试过 quasar build -end staging。它有效吗?
解决方案
目前quasarframework/app-extension-dotenv有一个限制,它只支持Production
和Development
环境。
This app-extension can only handle 2 environments. If you need more environments, use the qenv app-extension.
https://github.com/quasarframework/app-extension-qenv
https://github.com/quasarframework/app-extension-dotenv/issues/21
推荐阅读
- java - 如何通过 Java High Level Rest Client 实现 Secure Elastic Search
- c++ - Tmax(0x7fffffff) 的一个奇怪问题,为什么 (!x) == x?
- python - 尝试过滤 Pandas DF 以仅显示一周内的日期时遇到错误
- jquery - 控制台中的结果为空 jquery
- azure - 无法从 az login 登录到 Azure 帐户 - 管理员启用了 MFA
- java - 在python中实现java jasypt的PBEWITHHMACSHA512ANDAES_256
- java - 最终变量和常量之间的区别?
- swift - 从 URLCache 检索缓存响应的路径而不是数据
- symfony - 如何使用 Symfony Api Pltaform 发送 json 和文件
- c# - Azure Redis - 每次访问密钥时如何延长到期时间?