【问题标题】:Use of firebase functions when using firebase hosting locally在本地使用 firebase 托管时使用 firebase 功能
【发布时间】:2019-11-23 02:00:35
【问题描述】:

我目前的项目设置中使用了 Firebase 功能,用于一些后端功能。

我希望在使用网站时输入firebase serve 时能够在本地测试这些功能,而不是使用邮递员查询功能。

有什么办法可以做到吗?

我尝试只输入 firebase serve 但这给了我已部署到 firebase 的功能,而不是我在本地更改的功能。

非常感谢您。

【问题讨论】:

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


【解决方案1】:

我发现你用过

firebase.functions().useFunctionsEmulator('http://localhost:5001');

使用本地托管的功能。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-06-13
    • 2018-11-12
    • 2018-10-31
    • 2017-08-14
    • 2018-02-24
    • 2020-12-27
    • 2020-08-03
    • 2019-09-20
    相关资源
    最近更新 更多