如何解决“存储:上传规则时超出配额限制的错误”

时间:2019-06-20 10:26:43

标签: firebase google-cloud-storage firebase-security-rules

在CI中使用deploy命令部署存储规则时出现错误

$ firebase deploy --only storage

输出

=== Deploying to 'environment-name'...

i  deploying storage
i  storage: checking storage.rules for compilation errors...
+  storage: rules file storage.rules compiled successfully
i  storage: uploading rules storage.rules...
i  storage: quota exceeded error while uploading rules
? You have 2501 rules, do you want to delete the oldest 10 to free up space? (y/N)

我找不到自动接受删除最早的10的方法。我尝试将--force--yes添加到命令中没有成功。 --force适用于Firestore规则,但不适用于存储规则。参见How to fix "firestore: quota exceeded error while uploading rules"。有什么办法解决吗?

0 个答案:

没有答案