当谈到主页时,它看起来不像Firebase尊重Firebase.json配置文件。。我需要为所有路由使用rendertron中间件功能。它成功地为子路由运行,但从未为主路由运行
{
"hosting": {
"public": "dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"function": "entry"
}
]
}
}
有人遇到这个问题吗?
注:
解决方案:
如果有人遇到同样的问题-
您需要将index.html文件重命名为app.html之类的文件