动态将子域添加到Firebase托管 [英] Dynamically add subdomain to Firebase hosting
问题描述
我在Firebase上托管了一个应用程序,我希望将其设置为使用该应用程序的每个公司都可以通过其自己的子域(例如, company-a.example.com
, company-b.example.com
等).如果进入控制面板并在主机部分下选择连接域",然后分别设置每个子域,则可以执行此操作.是否有API或某种方式可以通过编程方式连接这些新的子域?
I have an application hosted on firebase, which I'm hoping to set up so that each company using the application will log in via their own subdomain (e.g. company-a.example.com
, company-b.example.com
, etc.). I can do this if I go into the control panel and choose "Connect Domain" under the hosting section and set up each subdomain individually. Is there an API or some way that I can programatically connect these new subdomains?
推荐答案
没有API可以将子域添加到动态托管中,也没有方法可以进行通配符映射.
There is no API to add subdomains to dynamic hosting, nor is there a way to do wildcard mappings.
这篇关于动态将子域添加到Firebase托管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!