Why Vercel + Cloudflare?
The fastest way to get a custom domain on a static site is Vercel for hosting and Cloudflare for DNS. Here’s the exact setup I used for aicoding.followcommand.app.
Step 1: Deploy to Vercel
Push your code to GitHub, then:
- Go to vercel.com/new
- Click Import Git Repository
- Select your repo
- Click Deploy
You’ll get a *.vercel.app URL instantly.
Step 2: Add Custom Domain
In your Vercel dashboard:
- Go to your project → Settings → Domains
- Type your subdomain (e.g.,
aicoding.followcommand.app) - Copy the CNAME target Vercel shows you
Step 3: Cloudflare DNS
In Cloudflare → DNS → Add Record:
| Field | Value |
|---|---|
| Type | CNAME |
| Name | link |
| Target | cname.vercel-dns.com |
| Proxy | DNS only (grey cloud) |
Step 4: SSL and Redirects
Vercel auto-provisions SSL. Then toggle Redirect to primary domain in Vercel settings.
Your page is live with SSL in about 2 minutes.
Why This Stack?
- Vercel handles hosting, SSL, and deployment
- Cloudflare manages DNS (but we don’t proxy; Vercel handles SSL directly)
- Custom domain gives you branded links
It’s the same setup I use for aicoding.followcommand.app. Free, and it took less time to configure than writing this post.