I’m attempting to build a PWA for a capstone project course. When I run ng serve in my development environment, my app runs perfectly. However, whenever I run npm i -g http-server from the dist folder, or even when I copy the contents of the dist folder to my apache2 server, the landing page works, but my links do not work.

What am I not understanding?

I changed all links from href to routerLink.

No luck.