我可以在本地运行 Firebase 存储云功能吗? [英] Can I run Firebase Storage cloud functions locally?

查看:24
本文介绍了我可以在本地运行 Firebase 存储云功能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自 Firebase 文档:

在本地运行函数

Firebase CLI 包含一个 Cloud Functions 模拟器,可以模拟以下函数类型:

The Firebase CLI includes a Cloud Functions emulator which can emulate the following function types:

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

您可以在本地运行函数以在部署到生产之前对其进行测试.

You can run functions locally to test them before deploying to production.

问题

有没有办法在本地运行 Firebase 存储的云功能(例如:由文件上传触发),还是我需要实际部署它们进行测试?

Is there a way to run cloud functions for Firebase Storage (ex: triggered by file upload) locally or do I need to actually deploy them for testing?

推荐答案

firebaser here

更新:Firebase Emulator Suite 现在还支持云存储.这包括上传到模拟 Cloud Storage 以触发模拟 Cloud Functions.

Update: the Firebase Emulator Suite now also supports Cloud Storage. This includes uploads to emulated Cloud Storage triggering emulated Cloud Functions.

有关完整详细信息,请参阅文档.

See the documentation for full details.

这篇关于我可以在本地运行 Firebase 存储云功能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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