Firebase hosting deploy error “HTTP Error: 404, Not Found”

后端 未结 8 1563
无人及你
无人及你 2021-02-15 17:51

I don\'t know if this is related to the recent bump of firebase-tools to 6.0 or not. But I\'m unable to deploy my files to a hosting project.

The output after I type fi

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-15 18:15

    I had the same problem

    In my case I fixed it by adding on the firebase.json a dot before /dist on public tag "public": "./dist/my-app-name",

    Example of my json

    { "hosting": { "public": "./dist/my-app-name", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "rewrites": [ { "source": "**", "destination": "/index.html" } ] } }

提交回复
热议问题