Vercel custom domain returns 404 error while deployment URL works

Problem

I just setup my own custom domain sepezh.dev to one of my project. but unfortunately the custom domain just return 404 but still the Vercel one is working same deployment same configs but doesn’t work on custom domain.

Expected to work but it returns 404.

Custom-domain URL: sepezh.dev
Vercel URL: https://sepezh-github-7f0outqdh-sepezhs-projects.vercel.app/

Configuration

vercel.json

{
  "rewrites": [
    {
      "source": "/(.*)",
      "destination": "/index.html"
    }
  ]
}

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

I just created the post, but after checking again it seems to be working now. Maybe I just needed to wait a bit.