我正在区域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以使用功能区域?