I deployed the angular app for firebase. I see that the character on the page is fine, but I get the following error when reloading the page:
This file does not exist and there was no index.html found in the current directory or 404.html in the root directory. Why am I seeing this? You may have deployed the wrong directory for your application. Check your firebase.json and make sure the public directory is pointing to a directory that contains an index.html file. You can also add a 404.html in the root of your site to replace this page with a custom error page.
Since the error tells me that I checked my firebase.json file and it displays this:
{ "firebase": "******", "public": "dist", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ] }
Here you can see that my public folder is my dist folder. This dist folder is actually where I put all my files (css, js, html and index.html) when gulp builds it all. The folder structure is as follows:
dist css images js templates index.html
So the destination folder above has an index.html page - so why am I getting this error? angular should be here and handle all the routing, but that doesn't seem to be the case.
EDIT

source share