Firebase调用Google Cloud函数问题-两个具有相同名称的函数

时间:2018-11-19 13:27:52

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

我有两个名称相同但位于两个不同区域的Google Cloud函数。

如何指定应调用哪个函数(因为其中两个具有相同的名称)?

我的firebase.json文件:

{
  "hosting": {
    "public": "public",
    "rewrites": [
      {
        "source": "/test",
        "function": "paaspiutil"
      }
    ]
  }
}

1 个答案:

答案 0 :(得分:2)

如果您要将其链接到托管as referenced in a previous answerheres the links to the docs

,则当前只能在us-central1中部署功能。