当您将域example.com
连接到Firebase并导出云功能时,为什么您只能访问us-central1...cloudfunctions.net/helloWorld
中的功能?我想从example.com/helloWorld
访问。有没有办法做到这一点?
答案 0 :(得分:0)
在directing Firebase Hosting requests to Cloud Functions的文档中找到它:
// Add the following rewrites section *within* "hosting" "rewrites": [ { "source": "/bigben", "function": "bigben" } ]