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
七牛云的访问密钥以 JSON 的形式存储在 key/secret-password.json文件中 。上传文件前再读取 key/secret-password.json ,生成上传凭证。
key/secret-password.json
有的时候你可能有一些不应该提交到代码仓库中的变量,尤其是当你的项目托管在公共仓库时。这种情况下你应该使用一个 .env.local 文件取而代之。本地环境文件默认会被忽略,且出现在 .gitignore 中。
像访问密钥这种变量应该存放在 env 文件中,且根据环境配置不同的变量
参考 https://cli.vuejs.org/zh/guide/mode-and-env.html
The text was updated successfully, but these errors were encountered:
因安全原因抽离以下变量到 env 文件中。
所以在开发模式时,需要手动创建环境变量文件 .env.development.local
.env.development.local
VUE_APP_QINIU_ACCESS_KEY=**** VUE_APP_QINIU_SECRET_KEY=**** VUE_APP_QINIU_UPLOAD_URL=upload-z2.qiniup.com VUE_APP_QINIU_BUCKET_NAME=pikapika VUE_APP_QINIU_BUCKET_DOMAIN_NAME=img.pikapika.ink VUE_APP_ADMIN_PASSWORD=admin # Pullword Server VUE_APP_PULLWORD_API_HOST=120.26.6.172
Sorry, something went wrong.
409915016
No branches or pull requests
七牛云的访问密钥以 JSON 的形式存储在
key/secret-password.json
文件中 。上传文件前再读取key/secret-password.json
,生成上传凭证。像访问密钥这种变量应该存放在 env 文件中,且根据环境配置不同的变量
参考
https://cli.vuejs.org/zh/guide/mode-and-env.html
The text was updated successfully, but these errors were encountered: