In angular2 I deployed my app to firebase hosting and on refresh of the pages I get 404 error.
The route works fine when you click on the website but when you click refresh the page disappears.
This is my firebase.json:
{
"firebase": "************",
"public": "prod",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{"source": "**", "destination": "/index.html"}
]
}
Or do I need some angular2 code to cater for this?