有没有办法阻止 Firebase Cloud Functions 使用 Firebase Storage 中的存储空间? [英] Is there a way to prevent Firebase Cloud Functions from using storage space in Firebase Storage?

查看:25
本文介绍了有没有办法阻止 Firebase Cloud Functions 使用 Firebase Storage 中的存储空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在控制台中查看了我的 Firebase 存储使用情况,并注意到在我部署 Cloud Functions 的那一天,存储使用量激增.我看到出现了一条名为 us.artifacts.%PROJECT NAME%.appspot.com 的新橙色线.为什么我的与 Cloud Functions 相关的数据会存储在 Firebase Storage 中?我该如何防止这种情况?我对存储使用量激增的问题是担心它会继续增加,导致我超过免费层限制.

I was looking at my Firebase Storage usage in my console and noticed the day I deployed my Cloud Functions there was a huge surge in storage usage. I see a new orange line appear called us.artifacts.%PROJECT NAME%.appspot.com. Why is my data related to Cloud Functions being stored in Firebase Storage? How do I prevent this? My problem with this huge surge in storage usage is I fear it could continue to increase causing me to pass the free tier limit.

推荐答案

您看到的文件是适用于 Node.js 10 及更高版本的 Cloud Functions 新部署管道的一部分.使用 Cloud Functions 时无法阻止创建这些文件,尽管您可以清理过时的图像.

The files you see are part of the new deployment pipeline of Cloud Functions for Node.js 10 and higher. There is no way to prevent these files from being created while using Cloud Functions, although you can clean up outdated images.

上次我检查时,文件实际上是在非默认存储桶中创建的,这意味着它们没有免费配额.对于大多数开发人员而言,存储成本每月加起来高达几毛钱,但您的里程当然可能会有所不同.

Last time I checked, the files are actually creating in non-default buckets, which means there's no free quota on them. For most devs the storage cost adds up to a few dimes per month, but your mileage may vary of course.

有关更多信息,请参阅:

For more on this see:

这篇关于有没有办法阻止 Firebase Cloud Functions 使用 Firebase Storage 中的存储空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆