Been trying to this for a few days after countless tutorials and I can’t seem to figure it out.
The desired outcome is this:
www.example.com is my main react app hosted on Google Cloud Servers.
blog.example.com is my Gatsby blog hosted on Netlify.
I have a robust react app that is hosted on
www.example.com, on a Google cloud server. The domain is registered with Google domains.
I want to add a new subdomain,
blog.example.com and have it point to Netlify, where I host a simple Gatsby blog.
Everything I find always leads me to change my apex/main domain to netlify servers, but this is not the desired outcome as it will no longer point to my main app, and the email accounts associated with it stop working as well.
I have no idea how to do it.
From my understanding, we can add an
A record on Google domains:
blog.example.com A 22.214.171.124
or add a
blog CNAME → theNetlify-app-name.netlify.app
Neither of these solutions seem to work.