【发布时间】:2021-01-29 11:45:16
【问题描述】:
是否可以使用 Firebase 托管重定向覆盖 Angular 路由器?
我创建了一个 404.html 页面来利用 firebase 404 错误处理。
即将此添加到 firebase.json 重写”:
[
{
"source": "**",
"destination": "/index.html"
},
{
"source": "/404",
"destination": "/404.html"
}
]
然而,最初的 /index.html 重写似乎阻止了 404 工作。
或者这只能通过 SSR 实现?
谢谢!
【问题讨论】:
标签: angular firebase http-status-code-404 firebase-hosting angular-router