在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"。有什么办法解决吗?