提交 5dd8e44d 编写于 作者: 雪洛's avatar 雪洛

update: 增加服务空间名称提示

上级 f55afd84
...@@ -15,6 +15,7 @@ if (process.env.UNI_CLOUD_SPACES) { ...@@ -15,6 +15,7 @@ if (process.env.UNI_CLOUD_SPACES) {
process.UNI_CLOUD_ALIYUN = !!spaces.find(space => space.clientSecret) process.UNI_CLOUD_ALIYUN = !!spaces.find(space => space.clientSecret)
if (spaces.length === 1) { if (spaces.length === 1) {
const space = spaces[0] const space = spaces[0]
console.warn(`当前所用的服务空间为:${space.name}`)
if (space.clientSecret) { if (space.clientSecret) {
process.env.UNI_CLOUD_PROVIDER = JSON.stringify({ process.env.UNI_CLOUD_PROVIDER = JSON.stringify({
provider: 'aliyun', provider: 'aliyun',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册