Published on

Build Your Personal Blog in One Hour - Domain Setup Guide

Authors
  • avatar

In the previous article, we successfully deployed our blog. However, the default xxx.vercel.app URL isn't very professional. This article will show you how to set up your custom domain.

Prerequisites

  1. Completed the Vercel setup steps
  2. Namecheap account
  3. Cloudflare account
  4. Credit card (for domain purchase)

Purchase a Domain on Namecheap

  1. Register an account at Namecheap
  2. Enter your desired domain name in the search bar (e.g., myawesomeblog.com)
Namecheap domain search
  1. Add your chosen domain to cart and complete the payment process
  2. After payment, verify that your domain status is Active in the Domain List. If not, follow the verification instructions (such as email verification).
Namecheap domain interface

Cloudflare Configuration

  1. Sign up for a Cloudflare account
  2. Click "Add a Site" and enter your domain name
Cloudflare add site
  1. Select the Free Plan
Cloudflare plan selection
  1. Remove all automatically detected DNS records (we'll set them up again)
Cloudflare DNS detection
  1. Modify DNS settings in Namecheap:
    • Log into your Namecheap dashboard
    • Find your domain → Domain List → Manage
    • Select "Custom DNS" under Nameservers
    • Enter the nameservers provided by Cloudflare (e.g., cass.ns.cloudflare.com and wilson.ns.cloudflare.com)
Namecheap domain interface

Vercel Configuration

  1. Log into your Vercel dashboard and select your project
  2. Go to "Settings" → "Domains"
  3. Enter your domain name (e.g., myawesomeblog.com) and configure the redirect settings as needed
Vercel add domain
  1. Add the records provided by Vercel to your Cloudflare DNS settings:
    • Turn off the "Proxy" feature
    • Set TTL to "Auto"
Vercel domain config step 1
Vercel domain config step 2
Cloudflare DNS settings interface
  1. Vercel will automatically verify your DNS configuration
  2. Wait a few minutes for the DNS records to propagate

Conclusion

After completing these steps, you'll be able to access your blog using your custom domain! Now it's time to start building your blog's content!