Mapping Your Domain Name (Optional)
You can also add a custom domain like YOUR_DOMAIN_NAME.com. You need to buy a domain name online. You can get one by a quick Google search. If you already bought a domain, you need to create a CNAME record before creating a bucket. Your CNAME record should map to c.storage.googleapis.com. To create a CNAME record, contact your domain registration company.
Now create the bucket with a name which should be equal to your CNAME. For example, your bucket should be named YOUR_DOMAIN_NAME.com. This way, you map your domain name to your bucket. Now you can visit YOUR_DOMAIN_NAME.com to see your static website.
Static Website Hosting with Google Cloud Storage: Hosting a Web App
In this tutorial, we will host a static website in Google Cloud Storage(GCS). If you want to host your resume as a portfolio website or if you want to have a website for your small to medium company, then hosting a static website is the best solution. This is very useful if you don’t have much traffic to your website and you don’t want to pay much for web hosting.
In this article, we will host a basic calculator web app in Google Cloud.