Netcraft

// 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 →

Gabriel Cazaciuc

By , 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.

TypeName (host)Value
A@ for the root domain, or the subdomain (for example app)The IP address Lovable shows
AAAASame as the A record, only if Lovable lists oneThe IPv6 address Lovable shows
TXT_lovable for the root, or _lovable.app for a subdomainStarts with lovable_verify=
MX, other TXTLeave as they areYour 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:

SymptomCauseFix
Cloudflare error 1001 or 1003The 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 elsewhereDelete AAAA records Lovable did not give you
Domain verified, but no HTTPS after a dayA CAA record does not allow Lovable's certificate issuersAdd 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 twoEnable the www redirect and add both sets of records
Email stopped after the changeMX or SPF records were deleted with the old website recordsRestore MX records; only website records should change
Still not active after 72 hoursRecords do not match what Lovable expectsCompare 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.

// FAQ

Frequently asked questions

Another question? Write to us; you get an answer from the developer within one working day.

Can I use a custom domain on Lovable's free plan?

No. Custom domains are available on paid plans; Pro starts at $25 per month.

How long does it take for a Lovable custom domain to work?

Most domains are active within a few hours. Lovable's docs say DNS changes can take up to 72 hours.

Why does Cloudflare show error 1001 or 1003 on my Lovable domain?

The Lovable records are proxied. Switch them to “DNS only” (gray cloud) in Cloudflare.

Do I need to buy an SSL certificate for Lovable?

No. Lovable generates and installs a certificate for each connected domain automatically, as long as your CAA records allow its issuers.

Will connecting my domain to Lovable break my email?

Not if you only add the records Lovable gives you and keep your MX and SPF records. Email breaks when those are deleted along with old website records.

// From Lovable, Bolt or Replit to production

Keep reading

// From Lovable, Bolt or Replit to production

Why doesn't Google index my Lovable app, and how do I fix it?

Older Lovable apps are React single-page apps: the server sends an empty HTML page and the content appears after JavaScript runs, so Google indexes them late or partly. Lovable apps created since 13 May 2026 render on the server. To fix an older app, enable pre-rendering, upgrade it to TanStack Start, or move public pages to a server-rendered site.

Read the guide

// From Lovable, Bolt or Replit to production

How do you move a Lovable app to your own hosting and GitHub?

Connect the project to GitHub (two-way sync, all Lovable plans), check package.json for React + Vite or TanStack Start, and deploy the repo to Vercel or Netlify with the same environment variables. Then move the backend to your own Supabase project: schema from migrations, data and users from a database export, files from storage, secrets re-added by hand.

Read the guide

// From Lovable, Bolt or Replit to production

How do you add Stripe payments to a Lovable app?

Lovable offers two paths: built-in payments, where Lovable sets up Paddle or Stripe for you (paid plan required), or your own Stripe account connected with a restricted key. The own-account setup checks subscription status with Stripe at sign-in and has webhooks off by default. For production, add a verified webhook that writes each user's access to your database.

Read the guide

// Start here

How do you take a Lovable, Bolt or Replit app to production?

To take an AI-built app to production you need five things the builder rarely finishes: database access rules on every table, payments confirmed on the server, hosting and a database in your own name, pages Google can read, and code you can change without breaking it. With a developer this usually takes 3–7 days and costs €1,500–3,000.

Read the guide

Lovable Developer, at a fixed price

A senior developer for Lovable apps: security, Stripe, SEO, hosting, features. From €1,500, 3–7 days. Written scope and price within 24 hours.