Gen*_*enu 6 firebase firebase-hosting
我正在使用firebase托管,我在firebase.json中设置了正确的url重写,如下所示:
"rewrites":
[{
"source": "**",
"destination": "/index.html"
}]
Run Code Online (Sandbox Code Playgroud)
这似乎工作正常,因为所有路由都应该通过index.html.但是,当我在路由中有一个以" - "开头的firebase对象ID时,它会抛出404.所以例如my-cool-app.firebaseapp.com/profiles/-JfZA03uAJI7rpqQg0sG会返回404.但是,如果我删除id中的破折号,那么路径似乎是正确重写.
这可能是什么问题?
| 归档时间: |
|
| 查看次数: |
861 次 |
| 最近记录: |