I have a Angular project where routing works in localhost, but when I deploy my project to Firebase hosting only the base-url works. Here is my routing: Example https://baseurl/jegharaldrigkategori does not work in Firbase hosting. It says "Page not found"
const routes: Routes = [
{
path: '',
redirectTo: 'home',
pathMatch: 'full'
},
{
path: 'home',
component: HomeComponent
},
{
path: 'jegharaldrigkategori',
component: JegharaldrigkategoriComponent
},
{
path: 'jegharaldrig',
component: JegharaldrigComponent
},
{
path: 'udfordring',
component: UdfordringComponent
},
{
path: 'terning',
component: TerningComponent
},
{
path: 'overunder',
component: OverunderComponent
}
];
firebase.jsonconfig look like? Is it setup to serveindex.htmlfor all paths?