I'm trying to use ng build to be able to deploy my application in production with 'http-server'.
So I ran ng build and then served the app with http-server. Everything looks fine after I login and I can access every page. But when I refresh the page or click in the browser's URL bar and hit enter I'm getting a '404 Not Found'.
I'm not having this problem when serving my app with 'npm start' (ng serve).