// From Lovable, Bolt or Replit to production
How do you connect a custom domain to a Lovable app?
You need a paid Lovable plan (Pro starts at $25/month). Add the domain in the project's domain settings, then at your DNS provider create the A record Lovable shows and a TXT record named _lovable whose value starts with lovable_verify=. Lovable issues the SSL certificate itself. Most domains work within a few hours; DNS can take up to 72.
Want it done for you? Lovable Developer: from €1,500, fixed quote in 24h →

By Gabriel Cazaciuc, Founder & lead developer, Netcraft Digital
Last updated
Key facts
- Plan needed
- Any paid plan; Pro from $25/month
- Source: Lovable docs, Nov 2026
- Verification record
- TXT at _lovable, value starting with lovable_verify=
- Source: Lovable docs, Nov 2026
- Cloudflare
- Lovable records must be “DNS only” (gray cloud), not proxied
- Source: Lovable docs, Nov 2026
- DNS propagation
- Up to 72 hours, usually a few hours
- Source: Lovable docs, Nov 2026
- Domain and email with us
- Included in Security & Launch, from €1,500
- Source: Our fixed-price offer, Nov 2026
What do I need before connecting a domain to Lovable?
A paid Lovable plan, access to the DNS settings of your domain, and a published project. Custom domains are not available on the Free plan, and after a downgrade to Free you cannot connect new domains until you upgrade again.
You can also buy the domain through Lovable, in which case Lovable registers it and sets up DNS and SSL for you. If you already own the domain at another registrar, or you use the same domain for email, keep reading.
Which DNS records does Lovable need?
An A record pointing to the IP address Lovable shows you, and a TXT record that proves you own the domain. The exact values are in the project under domain settings, in Setup instructions; they are generated per domain, so copy them from there.
| Type | Name (host) | Value |
|---|---|---|
| A | @ for the root domain, or the subdomain (for example app) | The IP address Lovable shows |
| AAAA | Same as the A record, only if Lovable lists one | The IPv6 address Lovable shows |
| TXT | _lovable for the root, or _lovable.app for a subdomain | Starts with lovable_verify= |
| MX, other TXT | Leave as they are | Your email records |
Steps
- Publish the project
- Open domain settings in the project and add your domain
- Keep the option to redirect www to the root domain enabled, so Lovable gives you records for both
- Add the records at your DNS provider, exactly as shown (some providers want the host blank instead of @)
- Delete any other A, AAAA or CNAME records on the same name, but keep MX records
- Wait until the domain shows as Active; Lovable then issues the SSL certificate
- Open the site on both yourdomain.com and www.yourdomain.com, on mobile data as well as Wi-Fi
Why is my Lovable custom domain not working?
Usually because of a record you did not add: a leftover record, a proxy, or a certificate restriction. These are the failures Lovable's docs describe, and how they look in practice:
| Symptom | Cause | Fix |
|---|---|---|
| Cloudflare error 1001 or 1003 | The Lovable records are proxied (orange cloud) | Set them to “DNS only” (gray cloud) |
| Some visitors see another site, often on mobile networks (IPv6) | An old AAAA record sends IPv6 visitors elsewhere | Delete AAAA records Lovable did not give you |
| Domain verified, but no HTTPS after a day | A CAA record does not allow Lovable's certificate issuers | Add CAA entries for pki.goog, letsencrypt.org and ssl.com, and check the parent domain too |
| Root works, www does not (or the reverse) | Records added for only one of the two | Enable the www redirect and add both sets of records |
| Email stopped after the change | MX or SPF records were deleted with the old website records | Restore MX records; only website records should change |
| Still not active after 72 hours | Records do not match what Lovable expects | Compare each record with Setup instructions, then contact Lovable support |
The CAA fix, if your domain has CAA records, looks like this at your DNS provider:
yourdomain.com. CAA 0 issue "pki.goog"
yourdomain.com. CAA 0 issue "letsencrypt.org"
yourdomain.com. CAA 0 issue "ssl.com"How do I keep email working on the same domain?
Leave the MX records alone and keep a single SPF record. The website records Lovable needs do not touch email, so mailboxes at Google Workspace or another provider keep working as long as nothing else is deleted.
The one rule people break is SPF: each host can have only one SPF record. When a second service needs to send email from your domain (your mailbox provider, plus the service that sends sign-up and receipt emails), add its include to the existing record instead of creating a new one:
; wrong: two SPF records on one host, SPF checks fail
yourdomain.com. TXT "v=spf1 include:_spf.google.com ~all"
yourdomain.com. TXT "v=spf1 include:sender.example ~all"
; right: one record with both includes
yourdomain.com. TXT "v=spf1 include:_spf.google.com include:sender.example ~all"Sign-up, password reset and receipt emails should come from your domain, not from a shared sender. That needs the sending service's DKIM records too. It is a small task, and it decides whether your first users find the confirmation email in their inbox or in spam.
Should I buy the domain through Lovable or my own registrar?
Buy it at a registrar in your own name if the app is a business you plan to keep. Buying through Lovable is the fastest setup, because Lovable registers the domain and creates the DNS records and certificate. A domain at your own registrar is easier to point elsewhere later.
- Through Lovable: least setup; you can still add your own records, such as MX for email, next to the ones Lovable manages.
- At your own registrar: a few more steps now; when you move the app to your own hosting, you only change website records.
- Either way: the domain account should be in the company's name, with two-factor authentication, not in a freelancer's account.
Domain ownership is one of the items we set up in the vibe-code to production work, together with email sending and Stripe redirect URLs. Payments on the new domain are covered in how to add Stripe to a Lovable app.
What should I do after the domain is live?
Make the custom domain the only address search engines see. The lovable.app address and your domain serve the same app; if both are indexed, Google treats them as duplicates. Redirect or canonicalize to your domain, add a sitemap with the new URLs and submit it in Search Console. The rest of the indexing work is in Lovable SEO.
Update every place that stores the old URL: sign-in redirect URLs in your auth settings, OAuth apps (Google, GitHub), Stripe Checkout success and cancel URLs, and links in email templates. A missed redirect URL shows up as “sign-in works on lovable.app but not on my domain”.
What changes if I host the app myself?
The same idea, different records. If you move the app to your own hosting, point the domain to Vercel or Netlify with the records they show, remove the Lovable records, and update the same redirect URLs. Email records stay unchanged. Domain and email are part of the production checklist for AI-built apps.
