I am currently serving Angular from a server with http-server using the following command: http-server ./ index.html.
This serves the Angular application fine. Link clicking works. Although if I enter the URL with a /route-name directly as in url.com/route-name, the app crashes.
I was using lite-server but the lite-server docs recommended to only use it in development. When using lite-server, I can enter a URL with a route directly and it works fine.
How can I configure http-server to be able to enter a URL address with a page route or what is another good way to run Angular in a production environment?