Preface
This tutorial will show you how to deploy static Astro sites on Google Cloud. The deployment uses Google Cloud Storage, Google Cloud Load Balancer, Bitbucket pipelines and more to provide the following features:
- CDN
- Static asset caching
- Load balancing
- Automated cache invalidations
- Automated pipelines
- Compression
- Manual, automatic, scheduled and programmatic deployment options
- Perfect Lighthouse score for improved SEO
Note: This guide does not only apply to Astro but can be applied and adapted to suit any static site deployment needs for any SSG codebase.
Project repository
Project repository available here.
This guide assumes
- This guide assumes that you are using the `main` branch. In order to use the `master` branch, you might have to change `main` to `master` in many scripts.This guide does not include
This guide does not support
- Server-side rendering or other server methods: This guide only applies to static sites and static site generation. In order to use server-side rendering or other server-side methods, you must deploy to a server using other available guides.