I've purchased a Google Domains domain name and try to map my Cloud Run project to it.
To do so, in my Google Domain account, I added in the "DNS Settings" page, under custom resource records, two records:
- @ A 1h xxx.xxx.xx.xx (ip that I got from the Custom domain mappings -> DNS records in the Cloud run page)
- www CNAME 1h example.com.
From what I've read here: https://support.google.com/domains/answer/3251147?authuser=1#zippy=%2Ccname , this should be enough so that my urls "https://example.com" and "https://www.example.com" work but that's not the case. Only "https://example.com" works, and the one with "www" gives me a Google 404 page.
Any idea how I could make the "www" work ?
Thanks!
Best Answer
Finally managed to make it work:
I think the key to make it work was to map the wildcard to the DNS A ip.