当我单击Firebase网站上的URL时,它将转到Firebase托管站点: https://mi-fabuloso-proyecto-f1736.firebaseapp.com/
我在终端上键入“ $ npm install -g firebase-tools,$ firebase login,$ firebase init”和“ $ firebase deploy”
firebase.json
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
在浏览器上显示以下内容: https://mi-fabuloso-proyecto-f1736.firebaseapp.com/
答案 0 :(得分:0)
您似乎保留了默认的index.html,并且由于以下原因而将所有内容设置为:
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]