I have the following routes on my app-routing.module.ts:
{
path: '',
redirectTo: 'login',
pathMatch: 'full'
},
{
path: 'login',
loadChildren: () => import('./login/login.module').then( m => m.LoginPageModule)
},
{
path: 'trace',
loadChildren: () => import('./trace/trace.module').then( m => m.TracePageModule)
},
accessing /trace
works if I serve the app via ionic serve
. However, when I build the app using ionic build --prod
and serve www
directory using an http server, browser returns 404.
I'd like to deploy this ionic app as a web app on firebase hosting.