Lazy loaded image
Technology Sharing
3️⃣Vercel Custom Domain Setup Guide
Words 360Read Time 1 min
Sep 11, 2025
Sep 11, 2025
type
status
date
slug
summary
tags
category
icon
password
😀
This guide explains how to configure a custom domain (e.g., yourdomain.com) for projects deployed on Vercel, including resolving HTTPS certificate issues.

Vercel Custom Domain Setup Guide

🔗 Relevant Links

  1. Vercel Official Website
  1. Vercel Domain Management Documentation
  1. Cloudflare Official Website (Optional DNS Provider)

1️⃣ Prerequisites

  1. A project already deployed to Vercel
  1. Ownership of a domain
    1. notion image

2️⃣ Step 1: Add Domain in Vercel

  1. Log in to the Vercel Dashboard and select your project.
  1. Navigate to SettingsDomains.
  1. Enter your domain (e.g., yourdomain.com or blog.yourdomain.com) and click Add.
  1. Vercel will automatically detect the domain configuration and prompt you to set up DNS records.
notion image

3️⃣ Step 2: Configure DNS Records

Follow instructions based on your domain registrar:

A. Using Vercel’s Default DNS

  • In your registrar’s DNS settings, add these records:

    B. Using Cloudflare (Recommended)

    1. Log in to the Cloudflare Dashboard and add your domain.
    1. Under DNS Management, add a record:
      1. Ensure Cloudflare’s SSL/TLS mode is set to Full.
      notion image

      4️⃣ Step 3: Verify HTTPS Certificate

      1. Vercel automatically requests a Let’s Encrypt SSL certificate (may take 1–24 hours).
      1. Check certificate status:
          • View domain status in Vercel’s Domains section.
          • Test accessibility via https://yourdomain.com.
      1. If the certificate fails:
          • Manually retry certificate issuance in Vercel (click Refresh).
          notion image

      5️⃣ Advanced Configurations

      Redirects

      • Add rules to vercel.json to redirect www.yourdomain.com to yourdomain.com:

        Subdomains

        • To bind additional subdomains (e.g., docs.yourdomain.com), repeat Steps 1–2.

        ❌ Common Issues

        Q1: DNS Not Propagating

        • Check TTL settings (recommended: 600 seconds).

        Q2: HTTPS Certificate Errors

        • Disable Universal SSL in Cloudflare (may conflict with Vercel).
        • Remove and re-add the domain in Vercel.

        📌 Summary

        1. Add domain in Vercel → Obtain DNS records.
        1. Configure DNS with your registrar (A/CNAME records).
        1. Wait for HTTPS auto-provisioning.
        1. Test access at https://yourdomain.com.
        For registrars not listed (e.g., Tencent Cloud, Huawei Cloud), refer to Vercel’s official docs or contact their support.

         
        上一篇
        CSA Final Note
        下一篇
        My Device

        Comments
        Loading...