Lovable custom domain not working: fix DNS, SSL, and the sign-in redirect
By AI App Medic · Updated · Lovable · DNS · Custom domain · SSL
You bought a domain, pasted some records, and the site still opens as something.lovable.app, hangs on "Setting up domain", or the custom URL shows ERR_SSL_VERSION_OR_CIPHER_MISMATCH. Custom domains on Lovable are available on paid plans, and the project has to be published before the domain can serve the app. Most failures after that are DNS records that do not match what Lovable asked for, a certificate that has not issued yet, or sign-in settings that still allow only the .lovable.app URL.
Where the records really live
The place you edit DNS is whoever answers for the domain's nameservers, which is not always the shop that sold you the domain. In Lovable, open Workspace settings > Workspace domains, select the domain, and expand Advanced > DNS records. If you see an Add record button, Lovable is managing DNS and there is usually nothing to fix at your registrar. If the list is read-only, you add the records at Cloudflare, Namecheap, GoDaddy, Route 53, or whoever the nameservers point at.
For the project itself, go to Project > Settings > Domains (or Publish > Add domain). Choose Connect a domain you own, enter the root or a subdomain, and open Setup instructions or Set up DNS. Copy those values. Do not reuse a blog post's IP address. Lovable can change the records it needs, and a proxied setup uses different ones than a direct A record.
Step 1: add exactly what the panel shows
- Copy every record in the setup panel: often an A (and maybe AAAA) for the root, a CNAME for
www, and a TXT used to verify the connection. Host names matter.@, blank, andyourdomain.comcan mean the same root at one provider and a typo at another._lovableor a similar verification host must be entered as shown, not as@. - Remove leftover A, AAAA, or CNAME records on the same host that point somewhere else (old Vercel, old parking page, an IPv6 record you did not expect). Two A records on
@will make some visitors hit the wrong server. - Leave MX records, and the rest of your email DNS, alone. Pointing the website at Lovable does not require touching mail. If you also set up auth email, add SPF and DKIM as extra TXT records, and keep a single SPF record per host (see auth email not sending).
- If the domain is proxied through Cloudflare (orange cloud) or a similar CDN, turn on Lovable's option that the domain uses a proxy, and use the CNAME records it then provides. Replacing a required root A record with a homemade CNAME, then waiting for Lovable to re-check, is a common way to land in "Unable to verify" or an endless SSL loop.
After saving, wait for public DNS. It is often minutes, sometimes longer if an old record was cached. Check with a tool that queries several cities, or with:
dig +short A yourdomain.com
dig +short CNAME www.yourdomain.com
dig +short TXT yourdomain.com
# and the exact verification host from the panel, for example:
dig +short TXT _lovable.yourdomain.com
In Lovable, use the domain's three dots menu > Check again. Status should move through looking for records, waiting for them to take effect, and finishing up (certificate), then Active. For a root plus www pair, both addresses need to succeed.
Step 2: SSL, without a registrar certificate
Lovable issues and installs its own certificate once it can see the DNS. You do not upload, reissue, or "enable HTTPS" at Namecheap or GoDaddy for this host. A certificate sitting at the registrar is not the one visitors will get.
If the dashboard is Active but the browser complains about SSL:
- Give it time, then Check again. Lovable's docs say to contact support if a certificate has not issued after 72 hours.
- Look up CAA records on the domain. If you have any, they must allow the certificate authorities Lovable uses. A strict CAA list is a quiet way to block issuance.
- If you are behind a proxy, make sure you followed Lovable's proxy path. A proxy that presents its own incomplete handshake can show
ERR_SSL_VERSION_OR_CIPHER_MISMATCHeven when the dashboard looks happy. - Try the apex and
wwwseparately, and try a phone network so you are not seeing a cached failure.
Lovable serving is TLS 1.2 or newer. You cannot lower that, and you should not need to.
Step 3: make sure the project is published and the domain is primary
You can connect a domain before the first publish, but visitors will not see the app until the project is published. After the domain is Active, open it in a private window. If you still land on .lovable.app, set the custom domain as primary from the three dots menu. Other connected domains then redirect to it. Lovable uses a temporary redirect (302 or 307), not a 301, so you can change the primary later.
The .lovable.app URL cannot be removed today. Primary domain is how you make the branded URL the one people use.
Step 4: fix sign-in and callbacks
A domain can be live and still "not work" because login bounces, cookies look wrong, or a confirmation link opens the old host. Add the new origin to every auth allow list:
- Your own Supabase project: Authentication > URL configuration. Put the production origin in Site URL, and add it (and
wwwif you use it) to Redirect URLs. - Lovable's built-in backend: the custom domain is usually added when it becomes Active. If sign-in still fails, add it under the project's user/auth settings, or ask in the project chat to add the domain to the redirect URLs.
- Google, GitHub, or other OAuth apps: add the new callback URL in that provider's console as well. For Google, that callback is the Supabase Auth URL, not your app URL. If you see
Error 400: redirect_uri_mismatch, follow redirect_uri_mismatch with Supabase.
The full redirect walkthrough is in Supabase login redirects to localhost.
When to stop fighting the DNS and move the host
If you need a different CDN, prerendering setup, or a certificate flow Lovable does not offer, you can keep building in Lovable and serve the app from Vercel, Netlify, or Cloudflare. That is a hosting change, not a DNS typo, and it is covered in migrate a Lovable app off Lovable hosting. For a first custom domain, the checklist above is usually enough: exact records, a clean host, patience for the certificate, then auth URLs.
FAQ
Why does Lovable say Unable to verify when DNS Checker looks fine for the A record?
Verification also needs the TXT (and any AAAA or CNAME) records Lovable showed you, on the exact host name it specified. An A record alone is not enough, and a TXT on the wrong host never shows up.
The dashboard says Active but the browser shows a certificate error.
Lovable issues its own SSL certificate after DNS is visible. That can lag. A CAA record that blocks the certificate authority, or a Cloudflare proxy that is not using Lovable's proxy setup, can also prevent a valid cert. Do not install a registrar certificate and expect Lovable to use it.
Do I need to buy the domain through Lovable?
No. You can connect a domain you already own. Buy-through-Lovable is optional and then Lovable can manage the DNS for you. If you keep your current nameservers, you add the records at that provider.
Related guides
- Supabase login redirects to localhost (or the preview URL) after deploy: how to fix it
- Supabase auth email not sending in a Lovable app: the SMTP setup that actually works
- Migrate a Lovable app off Lovable hosting without breaking auth or the database
- Google Error 400: redirect_uri_mismatch with Supabase: the exact URI to add
- Lovable app slow first load: find the huge bundle and cut it down