为不同的 firebase 项目使用顶级域和子域

Use apex domain and subdomain for different firebase projects

对于我的个人网站,我有一个 firebase 项目(使用 firebase 托管)分配给我的顶级域 (http://exmaple.com), and I have another firebase project, which I want to allot to a subdomain of the same apex domain (http://subdomain.example.com),但是 firebase 不允许我这样做,有什么解决方法吗?

"This is currently a limitation of how custom domains work on Firebase Hosting. We're exploring ways to improve and make it possible to reuse the same apex domain across multiple sites, but we don't yet have anything concrete to announce at this time." - Michael Bleigh

您现在可以将多个域添加到单个 Firebase 托管站点。域可以提供网站内容或重定向到另一个域(可随时编辑)。此外,您现在可以在不同的项目中使用同一注册域的子域,例如在一个项目中使用 example.com,在另一个项目中使用博客。example.com。访问您的 hosting admin page 以配置它们。