You just need to modify the firebase.json file, which I assume looks something like this:
{ "public": "dist", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "rewrites": [ { "source": "**", "destination": "/index.html" } ] }
You need to move the specified keys (in this case, public , ignore and rewrites ) to the hosting key so that the fragment above looks below.
{ "hosting": { "public": "dist", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "rewrites": [ { "source": "**", "destination": "/index.html" } ] } }
Check out this link for more information on Firebase Host Hosting Configuration .
source share