Welcome to the community!
You’ll need to configure web servers for SPAs. This is already built in when you run ng serve but it’s a required step for deployed SPAs.
Check out these resources from the Angular team
Here are examples by web servers
Hope this helps!