首页 文章

更新Firebase模拟器功能超时持续时间

提问于
浏览
1

在本地模拟firebase函数时,是否有办法将函数超时从默认的60s更改?

已将 --idlePruneInterval 添加为Google Cloud 模拟器CLI的选项:https://github.com/GoogleCloudPlatform/cloud-functions-emulator/issues/66

在firebase服务模式下,此选项似乎无法正常支持:

firebase serve --only functions --idlePruneInterval=5000

或实验shell仿真:

firebase experimental:functions:shell --idlePruneInterval=5000

还有另一种解决这个问题的方法吗?也许编辑配置文件?

1 回答

  • 0

    Firebase中的Cloud Functions模拟器与Google Cloud Platform组织提供的模拟器分开 . 一个命令行参数不一定适用于另一个 .

相关问题