如何配置Firebase以使用Google函数区域

时间:2019-02-16 19:45:06

标签: firebase google-cloud-functions

我正在区域europe-west1中创建一些Go Google Functions,并尝试从Firebase hosting进行调用,我将firebase.json修改为:

{
  "hosting": {
    "rewrites": [
      {
        "source": "/test",
        "function": "test"
      }
    ],
    "public": "public",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ]
  }
}

但是在尝试调用该函数时:

https://test-foo-bar.firebaseapp.com/test

使用us-central1而不是europe-west1

https://us-central1-test-foo-bar.cloudfunctions.net/test/test

有什么想法如何配置Firebase以使用功能区域?

0 个答案:

没有答案