我无法在Firebase模拟器上运行我的Firebase存储功能

时间:2019-10-08 13:39:36

标签: firebase google-cloud-firestore google-cloud-functions

今天,我的Firebase Cloud Function遇到问题,当将新图像上传到Firebase存储时会生成图像大小。这个问题导致我的配额在一对夫妇上传后超出,并且当配额超过限制时,我将无法再使用Firebase。现在,我正在尝试在本地运行此Cloud Function,以便我的配额不会超过。

我尝试使用以下命令在终端中运行模拟器:firebase emulators:start

这将初始化除Firebase Auth和Firebase存储功能以外的所有Cloud Functions。 firebase docs说仿真器仅支持:

  • HTTPS函数
  • 可调用函数
  • Cloud Firestore功能

是否有办法/解决方法,以便我可以在本地运行Firebase Storage和Firebase Auth函数?

1 个答案:

答案 0 :(得分:1)

从模拟器中,不可以。如您所见,它们只是不受支持。

使用functions shellunit testing your functions和functions-test模块来研究函数。