How to use your domain and subdomain with Hashnode and Vercel

Search for a command to run...

Thanks for writing this up Afrie Irham! I was thinking of writing it, but hadn't got to it yet. Huge thanks to Sandeep Panda for helping me with the issue!
The best talent comes from referrals. So how do you convince people to share their referrals? You reward them with cash. Problem now, how do you avoid people sharing “referrals” mindlessly? You vet them. Reach out to your network, ask if they know s...
If you've faced this situation before, you might want to learn this. You're working on feature A at your work and suddenly you got a ping on Slack. "Please fix this bug, it's causing a critical bug in production that needs fixing ASAP!!!" You git st...
Before we start, please read the QRTs from both Edd and Mu'azh. They both have presented a great point about luck Keep working and grinding so that you're prepared to take advantage of luck when it comes. Me however, I'm here to share about how t...
Open the PDF file in Chromium-based browsers Print as PDF https://twitter.com/afrieirham_/status/1681196950715088897
If you're like me, you've probably heard this advice a lot, especially in the tech industry. "Go do more interviews, even especially if you're not actively looking." And they're right, here's why. You have higher leverage in negotiation when you're n...
Yesterday I ran into a problem when I try to connect my domain to Hashnode and use a subdomain on Vercel. Thankfully, everything is resolved after I reach out to Sandeep on Twitter.
Here's the tweet.
If you're planning to use your naked domain (or root domain) on Hashnode and you have a project on Vercel using a subdomain from the same domain – please read this first.
Hashnode uses Vercel, and when you want to connect your root domain to your Hashnode blog, you will need to delegate it to Hashnode's Vercel account.
Again, if you're not planning to use any subdomain (on Vercel) from the domain you use on Hashnode, there's no problem.
However, I want to use afrieirham.com for my Hashnode blog, and I want to use bukugraduan.afrieirham.com on my Vercel project.
But I get this error

Because what essentially happens is you're trying to use the same domain with 2 different Vercel account; Hashnode's and yours.
If you've already facing the same issue, you might want to contact Hashnode to delete your domain from their Vercel account, then follow these steps.
This way, you'll only delegate www subdomain to Hashnode and you'll keep your root domain on your Vercel account.
I want to again thank Sandeep for his help. He's the one who get in touch with Vercel regarding this issue.
The solution I'm sharing here today is the suggestion from Vercel's team, so I would like to thank them as well.
This is what they have to say,
It will be supported in the future. At this moment, however, it is indeed an edge case that we are not prepared yet. –Vercel