DEV Community

Cover image for Hashnode Subdomain with Netlify and Google Domain
Eamonn Cottrell
Eamonn Cottrell

Posted on • Originally published at blog.eamonncottrell.com on

Hashnode Subdomain with Netlify and Google Domain

If you're like me, you overcomplicate things.

I made a custom Hugo theme for my personal portfolio and blog site last year. Here's the Github. Here's the main site.

I registered the domain with Google. But I deployed the site with Netlify. Because I wanted to be awesome, learn many things, and take a circuitous route to the finished product.

This year, I realized that it may actually be a solid idea to be publishing articles on a proper platform like Hashnode.

Thankfully, I can do both!

Part of the appeal of Hashnode is the mapping of the blog to a custom domain. But when I went into Google Domains, I realized I'd set things up to use the DNS servers at Netlify.

pic

Fear not!

Heading over to Netlify, all that is needed is to setup a new record under the DNS settings here. The record type is CNAME, the name is whatever you want...in my case, I wanted it to be blog. And the value is hashnode.network. I left the TTL part blank (it's optional).

image.png

And, that's it. It can take up to 24hrs to propagate, but mine worked at blog.eamonncottrell.com almost immediately.

image.png

Now I've got a couple choices that I'm not fully committed on yet. I could hop back into the code to my portfolio site and redirect the blog posts to Hashnode. Or I could have them living in both places. Redundancy here seems dumb, but I do still kind of like that I've got a custom built template over on my domain.

What do you think I should do?

Let me know!

Reach out over on Twitter and/or LinkedIn and tell me what you think.

Here's my portfolio site.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay