Replit custom domain not working: stuck on Verifying or showing a blank page
Updated · by Zane
What Replit actually checks
Connecting a domain is two separate jobs. First Replit has to confirm that you own the domain. Then it has to issue a security certificate so the site loads over https. Both depend on the records you add where your domain is managed. If those records are wrong, the status stays on Verifying and nothing you do inside the app changes it.
Replit's documentation describes the records like this:
- An
Arecord that points the domain to the address Replit shows you. The documentation says to use only one A record at the root. - A
TXTrecord whose name and value are shown in Replit and start withreplit-verify=. It proves ownership and is used when the certificate is renewed. - No
AAAArecords. Replit supports only A records, and the documentation warns that an AAAA record on the same hostname can block the certificate.
Copy the exact values from your own Domains tab. They are generated for your app, so do not copy them from a guide or someone else's screenshot.
Step 1: confirm the app itself is published
Open the Publishing tool in your project and look for the Domains tab. Replit's documentation says this tab becomes available once your app has a successful deployment. If you cannot find it, or the add-domain option is greyed out or missing, first check that the latest publish actually finished without errors.
Then open the replit.app address Replit gave the app. If that address shows an error or a blank page, your domain is not the problem and connecting a domain will not fix it. Fix the deployment first. The guide on a blank page after publishing shows how to read the browser console to find the reason.
What is not documented
Replit's custom domain page does not list which deployment types or plans can use a custom domain, and there is no official statement on it that I could find. Do not assume a greyed-out button is a plan problem. Check the deployment first, then contact Replit support if the tab still does not appear.
Step 2: look at the records you actually have
Log in to the company that manages your DNS. That is usually the registrar where you bought the domain (GoDaddy, Namecheap and similar), or Cloudflare if you moved the nameservers there. Find the DNS or DNS records page for the domain and compare it with the Domains tab in Replit.
- More than one A record on the plain domain. Registrars often create a default or parking A record when you buy a domain. Delete it. Only the Replit one should remain.
- An AAAA record. Delete it for that hostname.
- A changed or missing TXT record. If you unpublished and republished, or removed and re-added the domain, check the value again. Replit's documentation says to re-add the record exactly as shown, including the hostname and value.
- Typos. Replit's documentation lists a trailing dot, an extra subdomain and a stale record as common mistakes.
- The hostname field. If your registrar does not accept
@for the plain domain, Replit's documentation says to type the domain name itself.
Step 3: the plain domain and www are separate
According to Replit's documentation, connecting yourdomain.com does not make www.yourdomain.com work. Each one is its own entry in the Domains tab, with its own A record and its own replit-verify TXT record on the matching hostname. If visitors type www and see an error while the plain domain works, this is the likely reason. Add www as a second entry, publish the two records it gives you, and wait.
Step 4: Cloudflare's orange cloud
If your domain uses Cloudflare, each record has a cloud icon. Orange means the traffic goes through Cloudflare's proxy. Replit's documentation says proxied records are not supported, because Replit cannot renew the certificate for them, and tells you to set the record to DNS only, which is the grey cloud. Click the orange cloud next to the A record so it turns grey, save, and give it a few minutes.
Step 5: check from the outside
Do not trust what your own registrar page says. Ask the internet. Go to dnschecker.org, enter your domain, choose A, then repeat for TXT and AAAA. You want the A value to match Replit, the TXT value to match Replit, and AAAA to be empty. Some locations may still show old values for a while, which is normal during the first hours.
If you are comfortable with a terminal, the same check takes seconds:
# Which address does the domain point to? (use your own domain)
dig +short A yourdomain.com
# Any IPv6 (AAAA) record left over? This should print nothing
dig +short AAAA yourdomain.com
# Is the verification record there?
dig +short TXT yourdomain.comNothing printed for the TXT lookup means the record is not visible yet or was added with the wrong hostname.
Step 6: wait, then reconnect if needed
Replit says verification usually takes a few minutes, but DNS changes can take up to 48 hours. If the records look right on dnschecker and the status is still on Verifying, Replit's documentation suggests disconnecting the domain from the Domains tab and connecting it again to force a fresh certificate, then waiting a few minutes and reloading.
Reports in Replit's community forum show this does not always resolve quickly. One user described a domain that had not verified after three days and had been unpublished and republished on a support agent's advice, and no fix was posted in that thread. If you are past two days with correct records, contact Replit support and include a screenshot of your records from dnschecker.
If the domain loads but shows a blank page
Once the domain shows Verified and loads, a blank page is almost never a DNS problem, because DNS is working well enough to reach the app. Compare it with the replit.app address. If that is blank too, it is a startup error in your app and the console will tell you why. If you use Supabase for sign-in and login now sends people to the wrong address after the domain change, see login redirects after publishing.
Test the fix
- The Domains tab shows Verified for each entry.
- Open the plain domain and the www version in a private window, and both load over https.
- Sign in, if your app has accounts, and check you stay on the new domain.
- Leave the
replit-verifyTXT record in place afterwards. Do not clean it up.
The second video on the home page shows a fix like this, from a failing deploy to a working launch on a custom domain.
FAQ
How long should I wait before assuming it is broken?
Replit's documentation says DNS changes can take up to 48 hours. Most of the time it is much faster. If the records are already correct on a lookup tool, waiting longer will not help. If they are not correct, no amount of waiting will fix it.
Is my app down while the domain is not working?
No. Replit's documentation says the app stays reachable at its replit.app address in the meantime. If that address works and your domain does not, the problem is in the domain setup, not in your app.
The domain worked before and now shows a security warning.
Replit's documentation says the replit-verify TXT record must stay in DNS for as long as the domain is connected. If it was deleted or changed, certificate renewal fails and browsers eventually show a warning. Put the record back exactly as the Domains tab shows it.
Do I need to edit DNS records by hand?
Not always. Replit offers a guided setup that signs in to your DNS provider and adds the records for you. It falls back to showing the records when it cannot do that for your provider. The manual route is the same set of records.
Checklist
Still stuck?
Send me the app link and what's broken. The first look is free and you get a fixed quote before I touch anything.
Related guides
- Bolt.new Stripe webhook not working after deploying to Netlify (404 or no upgrade)
- Lovable custom domain with Cloudflare: fix "too many redirects" (ERR_TOO_MANY_REDIRECTS)
- Lovable custom domain not working: stuck pending, no SSL, or www fails
- Lovable email verification not working: signup confirmation emails not arriving
- Lovable Google sign in showing redirect_uri_mismatch or an unverified app warning
- Base44 custom domain stuck on Pending verification
- Base44 payment succeeded, but the customer was not upgraded
- Lovable Stripe checkout: "Edge Function returned a non-2xx status code"
- Lovable password reset link not working or sending users to the wrong page
- Is your Supabase data public? A two-minute RLS check
- Blank white page after publishing your AI-built app
- “No such price” when going live: Stripe test and live mode mixed up
- Stripe payment succeeded but the user is still on the Free plan
- Subscription cancelled in Stripe but the user still has the paid plan
- Stripe webhook signature verification failed (400): causes and fix
- Login sends users to localhost or the preview URL after publishing
- Supabase update returns no error but nothing changes