App Engine 和 Firebase 在一个域中托管

App Engine and Firebase Hosting in One Domain

我有一个已经连接到 Firebase 托管的自定义域 (travelbox.id)。我还有一个 App Engine 应用程序作为我的 API。我想在 api-dev.travelbox.id 上托管 App Engine 应用程序。我在 this docs but domain connection to Firebase Hosting stop working. If you access api-dev.travelbox.id it is connected to App Engine. But if you access travelbox.id 未连接到 Firebase 托管后将自定义域映射到 App Engine。

是不是不能达到我想要的效果?

我自己找到了解决方案,给你!

this文档的第四步,我没有添加A记录,只添加了AAAA记录。令人惊讶的是,它有效! :D

我遇到了同样的问题并联系了 Google 云支持,这是他们的回答:

App Engine doesn't need to have the A records on the root domain if you are only serving from a subdomain. App Engine should work properly for you with just the one CNAME on subdomain.example.com.