/replit-tutorials

How to connect a custom domain to Replit

Learn how to connect a custom domain to Replit with clear steps and tips to improve your project's professional look and online presence.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to connect a custom domain to Replit

To connect a custom domain to a Replit deployment, you go into your Replit project's Deploy tab, choose your deployment type (usually "Web App" or "Static"), and use the Custom Domain option. Replit will give you one or two DNS records (usually CNAME or A/AAAA records). You then copy those into your domain provider’s DNS settings. After the DNS changes propagate, Replit automatically verifies it and issues HTTPS for you. The key is: Replit tells you exactly which records to add — you just paste them into your domain’s DNS manager and wait for verification.

 

What You’re Actually Doing

 

Connecting a custom domain means telling the internet’s “phonebook” (DNS) that yourdomain.com should point to your Replit-hosted site. Replit generates the correct DNS record for you — you do not guess it. Then your domain registrar (Namecheap, Google Domains, Cloudflare, etc.) stores that record. Once both sides match, Replit can serve your site securely.

 

Step-by-step: Connecting a Custom Domain to Your Replit Deployment

 

  • Open your Replit project and go to the Deploy tab on the left sidebar.
  • Select your deployment type:
    • Static for simple front‑end sites (HTML/CSS/JS, React static builds).
    • Web App for backend servers (Node, Python Flask/FastAPI, etc.).
  • Scroll down to the section normally labeled Custom Domain. Click Add Domain.
  • Enter the domain you already own (for example: mycoolsite.com).
  • Replit now shows one or two DNS records you must add. These are usually:
    • CNAME (common for subdomains like www.mycoolsite.com)
    • A or AAAA record (sometimes used for apex/root domains like mycoolsite.com)
  • Copy exactly what Replit shows. Do not change the values.
  • Go to your domain provider (Namecheap, GoDaddy, Cloudflare, etc.), open the DNS or Manage Zone section.
  • Add the record(s) exactly as Replit provided.
  • Return to Replit and click the Verify button. Verification may take a few minutes depending on DNS propagation.

 

What the DNS Records Look Like

 

This is an example of a typical CNAME record Replit gives when you connect a subdomain like www.example.com:

// Host: www
// Type: CNAME
// Value: your-app-name.username.repl.co

And for some domain providers, Replit may instead give this for the root domain example.com:

// Host: @
// Type: A
// Value: 34.132.0.0    // Example only! Use the exact IP Replit shows.

Replit will always show the real values. Never guess them.

 

Common Pitfalls That Break Custom Domains

 

  • Old DNS records still exist. Remove other A, AAAA, or CNAME records for the same host before adding Replit’s.
  • Using Cloudflare’s orange-cloud (proxy) mode. For many setups, Replit verification requires DNS-only mode (gray-cloud).
  • Trying to use a root domain with only CNAME. Some registrars don’t allow root-level CNAMEs. Replit usually provides A/AAAA alternatives if needed.
  • DNS TTL delays. Propagation isn’t instant. It can take 1–30 minutes depending on your provider.
  • Not re-verifying in Replit. Replit won’t activate HTTPS until you click Verify.

 

How to Confirm It’s Working

 

  • Replit will show a green “Connected” or similar indicator after verification.
  • You’ll see the “https://” padlock automatically appear — Replit issues SSL for free through its system.
  • Your domain loads your deployed Replit app when visited in any browser.

 

Important Things to Remember

 

  • Your Replit deployment URL (ending in .repl.co) still exists, but your custom domain now points to the same deployed app.
  • If you redeploy in the same project, the custom domain stays connected — you don’t redo DNS.
  • If you delete and recreate the deployment, you may need to reconnect the domain in Replit (DNS records usually stay valid).

 

In Short

 

Replit gives you DNS records — you paste them into your domain provider — then Replit verifies and enables HTTPS. The whole job is just matching the exact records. Once connected, your custom domain will serve your Replit deployment reliably and securely.

Still stuck?
Copy this prompt into ChatGPT and get a clear, personalized explanation.

This prompt helps an AI assistant understand your setup and guide you through the fix step by step, without assuming technical knowledge.

AI AI Prompt

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022