我的Firebase网站未部署,我遵循了文档

时间:2018-12-23 17:00:12

标签: angular firebase firebase-hosting firebase-cli

当我单击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/

1 个答案:

答案 0 :(得分:0)

您似乎保留了默认的index.html,并且由于以下原因而将所有内容设置为:

"rewrites": [
            {
              "source": "**",
              "destination": "/index.html"
            }
          ]
相关问题