从us-central1以外的其他地区重写从托管到云功能的路由 [英] Rewrite routes from hosting to cloud functions from other regions than us-central1

查看:73
本文介绍了从us-central1以外的其他地区重写从托管到云功能的路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 europe-west1 地区部署了一个http触发的云功能,并使用Firebase托管了一个Web应用. 我还在我的 firebase.json 文件中设置了对该HTTP函数的重写.

I have a http triggered cloud function deployed in the europe-west1 region and a web app hosted with firebase hosting. I have also setup a rewrite to that http function in my firebase.json file.

我注意到重写仅适用于 us-central1 函数.

I have noticed that the rewrite only works with us-central1 functions.

是否可以使用 europe-west1 函数进行重写?

Is there a way to make the rewrite work with europe-west1 functions?

推荐答案

现在,它在 如果您使用HTTP函数提供动态内容进行托管,则必须使用us-central1 ".因此,我认为我们必须拭目以待,看看他们是否会改变这一点.

Now that there is official support for other regions it states in the docs that "If you are using HTTP functions to serve dynamic content for hosting, you must use us-central1". So i think we have to wait and see if they will change that.

这篇关于从us-central1以外的其他地区重写从托管到云功能的路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆