【问题标题】:Multiple Angular Project hosting on a single Firebase project在单个 Firebase 项目上托管多个 Angular 项目
【发布时间】:2020-02-19 17:20:46
【问题描述】:
【问题讨论】:
标签:
angular
firebase-hosting
portfolio
【解决方案1】:
Firebase 托管支持每个项目拥有多个网站。然后,您可以将每个站点配置为在路径下提供服务。
{
"hosting": [ {
"target": "blog", // "blog" is the applied target name for the Hosting site "myapp-blog"
"public": "blog/dist", // contents of this folder are deployed to the site "myapp-blog"
// ...
},
{
"target": "app", // "app" is the applied target name for the Hosting site "myapp-app"
"public": "app/dist", // contents of this folder are deployed to the site "myapp-app"
// ...
"rewrites": [...] // You can define specific Hosting configurations for each site
}
]
}
https://firebase.google.com/docs/hosting/multisites#define_hosting_config