I am looking to deploy my Angular app to Google Cloud, including the following:
ng build
I've tried to deploy my static files to a Google Cloud Storage bucket, and could serve index.html by setting the "website configuraton" -> "index (main) page suffix". However, I do not see a way of redirecting other routes like site.example.com/home to index.html too using only Cloud Storage.
Other things I've looked into include:
TL;DR I need help with server-side URL rewrites for Angular and minimizing costs.
Thanks a lot for any help!
As long as it's static file, I strongly recommend to use App Engine standard. You serve for free your website (no server cost, static files are served for free) and you have up to 1Gb egress free per day!
In addition, you can use custom domain to plug your DNS name on top of App Engine and let Google Cloud managing the SSL certificate.
Definitively, it's the simplest and the cheapest solution to host static websites.