You can host a static website on a Google Cloud Storage bucket for a domain you own.
The downside to this is that you can only use HTTP. Please follow this tutorial for a HTTP only website
The HTTPS configuration is a bit more complex.
Please follow the steps in the well documented Google tutorial
gsutil web set -m index.html -e 404.html gs://your-bucket-name
Create a new trigger
cloudbuild.yaml to the root of the project containing:
steps: - name: 'gcr.io/cloud-builders/npm' args: ['install'] - name: 'gcr.io/cloud-builders/npm' args: ['run' , 'build'] - name: 'gcr.io/cloud-builders/gsutil' args: ["-m", "rsync", "-r", "-c", "-d", "./dist", "gs://bucket-name"]
Last build step is to push static files to your bucket.
You must link these to resolve your domain to our external Google IP address. This can be done in your DNS service