You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

部署Firebase项目时遇ext-firestore-bundle-builder-serve端点无效警告求助

解决Firestore Bundle Builder扩展部署时的Hosting警告

出现这个警告的核心原因是Hosting无法定位到扩展对应的Cloud Function端点,可从以下几个方向排查修复:

  • 核对扩展函数的部署区域
    安装Firestore Bundle Builder扩展时会指定Cloud Function的部署区域,你需要确认这个区域和firebase.json里frameworksBackend.region设置的europe-west1是否一致。如果扩展函数部署在其他区域(比如默认的us-central1),Hosting就会找不到端点。

  • 在rewrites规则中明确函数区域
    如果扩展函数和Hosting的backend区域不同,必须在rewrites规则里指定函数的具体区域,修改后的配置示例如下:

    {
      "hosting": {
        "source": ".",
        "ignore": [
          "firebase.json",
          "**/.*",
          "**/node_modules/**"
        ],
        "frameworksBackend": {
          "region": "europe-west1"
        },
        "rewrites": [
          {
            "source": "/bundles/*",
            "function": {
              "functionId": "ext-firestore-bundle-builder-serve",
              "region": "us-central1" // 替换成你的扩展函数实际部署区域
            }
          }
        ]
      }
    }
    
  • 确认扩展函数已部署完成
    扩展安装后需要等待几分钟让Cloud Function完全部署完毕,再执行Hosting的部署命令。如果函数还处于部署状态,Hosting会暂时无法识别到有效端点。

内容的提问来源于stack exchange,提问作者Philip

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.21 11:12:49