Skip to main content
All articles
  • Lovable
  • Custom Domain
  • AI Builder
  • Hosting

Lovable Custom Domain Not Working? DNS and Cloudflare Fixes

Updated Published 16 min read

On this page 10 sections

To set up a Lovable custom domain, you need a paid Lovable plan. Open Project → Settings → Domains, click Connect, enter your domain, and either let Lovable's automatic setup add the DNS records or add them yourself at your DNS provider. Lovable asks for an A record pointing to the IP address it shows (the standard value is 185.158.133.1), an AAAA record only if it lists one, and a TXT record at _lovable whose value starts with lovable_verify=, plus the records it lists for www, since the www redirect is on by default. Pro, the cheapest plan with custom domains, is $25 a month or $21 a month billed yearly (checked November 21, 2026).

When a Lovable custom domain isn't working, the cause is nearly always one of a few things: a Cloudflare record left on the orange-cloud proxy, records added somewhere other than where the domain's nameservers point, an old A, AAAA or CNAME record still sitting at the same name, a truncated TXT value, a CAA record that blocks the SSL certificate, or DNS that simply hasn't propagated yet.

What you need before you start

  • A domain. Bring one from any registrar, or buy one inside Lovable, which sets up the root domain and www for you and skips the verification TXT record (buying a domain through Lovable).
  • Access to the domain's DNS settings, which live wherever its nameservers point; that may not be your registrar (see the nameservers fix below).
  • A paid Lovable workspace: Pro, Business or Enterprise. The Free plan publishes only to lovable.app addresses (Lovable's custom domain docs).

What you get with Lovable's built-in custom domain

  • Automatic SSL. Lovable "automatically generates and installs an SSL certificate" once the records are in place. The certificate can come from Google Trust Services, Let's Encrypt or SSL.com, which matters only if your domain has CAA records (see the SSL fix below).
  • Automatic DNS setup, powered by Entri. Lovable detects your DNS provider, you sign in and authorize the change, and Entri writes the records for you. Entri lists automatic support for 70+ DNS providers, Cloudflare and GoDaddy among them (Entri's provider list).
  • A primary domain. The first custom domain you connect becomes the primary automatically (for domains added after October 29, 2025), and once it's Active, your lovable.app address and www redirect to it. Those are 302 temporary redirects (307 for a request that carries data, such as a form post); Lovable's docs say its hosting "does not support 301 permanent redirects between connected project domains."

Lovable custom domain DNS: A record, CNAME, and TXT

For a standard (unproxied) connection to a root domain, Lovable's setup window shows DNS records like these (connect a domain from another provider):

TypeHostValue
A@185.158.133.1 (or the IP shown)
AAAA@Only if Lovable lists one
TXT_lovablelovable_verify=...

A few details the table can't hold:

  • The A record IP. 185.158.133.1 is the standard value, and many Lovable sites share it; Lovable doesn't give individual projects a dedicated IP (how Lovable hosts your app). Still, copy the exact value from your own setup window rather than from any tutorial, this one included.
  • www has its own records. With the "Redirect www.yourdomain.com → yourdomain.com" option on (the default for a root domain), the setup window lists records for both the root domain and www. Copy every record it shows. There's no CNAME from www to your-app.lovable.app in the standard setup, whatever older guides say.
  • Subdomains. For blog.yourdomain.com, the A record goes on the label (blog) and the TXT record on _lovable.blog; different subdomains can point to different projects.
  • Remove what doesn't belong. Keep Lovable's records, AAAA included, and remove every other A, AAAA or CNAME record at that name; leave MX and other unrelated records alone.

Where the CNAME comes in

Lovable uses a CNAME only in proxy mode. If you connect with Advanced → Uses Cloudflare or similar proxy turned on, Lovable asks for a CNAME instead of the A record, pointing at your project's published address (one for the root and one for www if you kept the redirect), and no verification TXT record; publish the project first, so that address exists. Lovable doesn't configure, validate or monitor the proxy, so its settings are yours to get right.

The standard setup uses an A record because DNS hasn't allowed a CNAME next to other records since RFC 1034 in November 1987, and a domain's root always carries SOA and NS records. On Cloudflare, proxy mode works at the root because Cloudflare flattens the CNAME into plain addresses (CNAME flattening).

How to publish your Lovable app to a custom domain

  1. Open Project → Settings → Domains (or Add domain in the Publish dialog).
  2. For your first domain, click Connect under "Connect a domain you own" (for another one, Connect domain under "More domains").
  3. Enter the domain or subdomain, click Continue, and pick Root domain or Subdomain. For a root domain, leave the www redirect option on unless you have a reason not to.
  4. Choose automatic setup and sign in to your DNS provider when Entri asks, or choose manual setup and keep the records window open.
  5. For manual setup, at your DNS provider:
    • Add the A record: host @ (or the subdomain label), value the IP Lovable shows, TTL left at the default.
    • Add the AAAA record, if Lovable listed one.
    • Add the TXT record: host _lovable (or _lovable.<label> for a subdomain), value the full lovable_verify= string.
    • Add the www records, if you kept the redirect.
    • Delete every other A, AAAA or CNAME record at those names. Leave MX and other unrelated records in place.
    • On Cloudflare, set these records to DNS only (gray cloud).
  6. Back in Lovable, click Done. The domain shows Setting up domain and works through "Preparing", "Looking for your DNS records", "DNS records found, waiting for them to take effect" and "Finishing up". To nudge it, open the domain's three-dots menu and pick Check again.
  7. When the status reads Active, the connection and certificate are done, and "www included" means www is live too. If this is your first domain, it's already the primary.

Lovable custom domain not working: common errors and fixes

Check these roughly in order: Cloudflare proxy, nameservers, stray records, the TXT value, CAA records, and plain old propagation.

Cloudflare proxy errors 1001 and 1003 (the orange cloud)

If your DNS is on Cloudflare and the records sit behind its proxy (the orange cloud next to each record), a standard Lovable connection fails. Lovable's troubleshooting names Cloudflare errors 1001 and 1003 for this and says they come from Cloudflare's proxy (Lovable's custom domain launch guide).

Fix: in Cloudflare's DNS settings, switch the A record (and the www records) from Proxied to DNS only, so the cloud turns gray, then wait a few minutes and click Check again in Lovable. Cloudflare stays your DNS host; it just stops sitting between visitors and Lovable for this hostname.

If you want the proxy in front, for its caching or firewall rules, disconnect the domain in Lovable and connect it again in proxy mode, with the CNAME records described in where the CNAME comes in.

Error 1000 isn't on Lovable's list; Cloudflare ties it to other causes, so check your A record against Lovable's setup window, then ask Lovable Support.

Stuck on "Setting up domain" or "Looking for your DNS records"

Older guides call this being stuck on "Verifying". Lovable says "DNS changes may take up to 72 hours to propagate, though most updates are live within a few hours"; a domain bought through Lovable usually finishes within 30 minutes, though it can take up to a day. Before you wait, check what the world sees, with dig or a web tool such as dnschecker.org:

bash
dig +short NS yourdomain.com
dig +short yourdomain.com A
dig +short yourdomain.com AAAA
dig +short _lovable.yourdomain.com TXT

The NS answer tells you where the records have to live (next section). The A answer should be the IP Lovable showed you, the AAAA answer should be empty unless Lovable gave you one, and the TXT answer should be the full lovable_verify= string. Then work through the usual causes:

  • DNS hasn't propagated yet. If the answers still show your old host and your DNS provider has only Lovable's records at that name, the change hasn't arrived; check again later.
  • The TXT value is incomplete. Some DNS panels trim long values or mangle quotes; check "the full verification TXT value", as Lovable puts it, and paste it again if in doubt.

Nameservers: where Lovable's records go

Records only count at the DNS host the domain's nameservers point to, which isn't always the registrar: a Namecheap domain on Cloudflare's nameservers takes its records in Cloudflare, and anything added in Namecheap's panel is ignored. If dig +short NS names a provider you didn't expect, add the records there.

A domain bought through Lovable uses Lovable's nameservers by default. You can point it at custom nameservers, such as Cloudflare's, but then Lovable stops managing the domain's DNS, and the site stays offline until you recreate Lovable's records at the new DNS host (Lovable's custom domain docs).

SSL pending forever

The domain stays on "Finishing up": the records are found, but the certificate never arrives. If your DNS has CAA records, which name the certificate authorities allowed to issue for your domain, they may be blocking it. Lovable's certificate can come from any of three, so allow at least one:

text
yourdomain.com.  CAA  0 issue "pki.goog"
yourdomain.com.  CAA  0 issue "letsencrypt.org"
yourdomain.com.  CAA  0 issue "ssl.com"

For a subdomain, check the parent domain's CAA records as well. Then pick Check again and wait for Active. If no certificate has been issued after 72 hours, Lovable's docs say to contact Lovable Support.

Apex works but www doesn't (or vice versa)

The root domain and www each have their own records, and the setup window lists both only when the www redirect option is on. Open the domain's Setup instructions in Lovable to see the full list again, compare it with what's at your DNS provider, and add whatever is missing.

The site loads but shows the old hosting provider

Almost always a record from the old host still sitting at the same name: an A record, a CNAME, or an AAAA record (some providers add one on their own) that IPv6 visitors reach first. Delete every A, AAAA and CNAME record at that hostname that Lovable didn't give you, and keep the ones it did, AAAA included.

"Domain Service Error" when connecting

This one isn't DNS at all. The automatic setup window comes from Entri, and Lovable's docs list a script-blocking browser extension, a filtered network, or a connection that needs more than 10 seconds to load the window as causes. Try another browser or network, or open Setup instructions and add the records by hand.

Sign-in works on lovable.app but not on your domain

If the app uses Lovable's built-in backend, Lovable adds the new domain to the allowed redirect URLs automatically once it's Active. If you brought your own Supabase project or your own Google OAuth client, add the custom domain to its redirect URLs yourself.

Lovable custom domain pricing - what you actually pay

Lovable custom domain pricing starts with Pro at $25 a month, or $250 a year ($21 a month); Business is $50 a month, or $500 a year ($42 a month). Those are the 100-credit entry tiers; more credits cost more. Checked November 21, 2026 on Lovable's plans page:

PlanPriceCustom domains
Free$0No, lovable.app only
Pro$25/mo, or $21/mo yearlyYes
Business$50/mo, or $42/mo yearlyYes, plus SSO and roles

Connecting a domain you already own costs nothing extra; in Lovable's words, it "adds nothing to your Lovable bill. You keep paying your current registrar for the domain."

A domain bought through Lovable is billed separately, at the yearly price shown before checkout. A workspace that upgrades to a paid plan on the web can also claim one domain at no charge for the first year, within 90 days, on extensions such as .app, .dev, .co and .shop; Lovable's docs say ".com domains are not included."

What if you stop paying? "Downgrading or canceling does not disconnect your domains or unpublish your project," Lovable's docs say, but the project then runs on the Free plan's terms: you can't connect or buy new domains, Free projects may be unpublished for inactivity, and newer TanStack Start apps on Free are capped at 1,000 server requests per project per 10 seconds (how Lovable hosts your app). So you need the subscription to connect a domain, and Pro earns its price while you're spending the credits on changes. For a finished app, the question is where the build should live long term.

The alternative path - export your Lovable app and host it elsewhere

Whether you can take a Lovable app to a static host depends on which stack it runs on, and only one of the two builds to plain static files out of the box:

  • Older React + Vite apps build to a dist/ folder of static files that any static host can serve.
  • TanStack Start apps, the default for new projects since May 13, 2026, use server-side rendering. One with server functions, server routes or data loaded per request needs what Lovable's docs call "a host that runs the server part"; a host that only receives the static files won't run those features (external deployment and hosting). One without them can be prerendered to static files, and we tested a one-page app with no backend that ran that way on Hostsmith.

To check, open package.json: a TanStack Start project lists @tanstack/react-start. Our guide to deploying a Lovable app to Vercel, Netlify or Hostsmith walks through that check and the server hosts that run TanStack Start.

What gets exported

The export runs through Lovable's GitHub integration, which is on every plan, Free included. Open Project settings → Git → GitHub, connect your GitHub account (Add account, then Install & Authorize), and click Connect. Lovable creates a new repository, private by default, and keeps it in two-way sync with the project (Lovable's GitHub docs). Paid plans can also download the codebase as a zip.

The backend doesn't move: an exported frontend keeps calling Lovable's built-in backend, and moving it to your own Supabase project is a bigger job. A contact form on a plain static host needs a service of its own; putting an AI-built landing page on your own domain covers that part.

Building the export locally

For a React + Vite app, Lovable's docs list build command npm run build, output directory dist and Node 22; the dist/ folder is the whole site. If the app uses a backend, check that .env has the three VITE_SUPABASE_ keys before you build (the deploy guide has the details). Pointing your domain at another host doesn't take down the copy on lovable.app, so unpublish it if you don't want two live versions.

Point your domain at Hostsmith instead

Hostsmith hosts static sites and single-page apps, which is what a React + Vite Lovable build is; it doesn't run server code, so a TanStack Start app that needs the server at request time belongs on a server host, and one that doesn't needs prerendering first (the deploy guide has the setting). For a React + Vite app:

  1. If the app has client-side routes such as /dashboard, swap BrowserRouter for HashRouter before you build, since Hostsmith has no SPA fallback.
  2. Run npm run build, zip the dist folder, and drop the zip into a new site in the Hostsmith dashboard.
  3. Once the Hostsmith site is ready, disconnect the domain from the Lovable project. Then, on the Pro plan, add it in the Hostsmith dashboard, remove Lovable's records at that name, and add the records Hostsmith shows at your DNS provider. A domain bought through Lovable sits on Lovable's nameservers, and Lovable manages its DNS, so change its records in Lovable (Workspace settings → Workspace domains), or point it at custom nameservers first and add them there (nameservers).

The Free plan, which needs no credit card, gives you one site on an address such as your-site.us.hostsmith.link (or .eu. for a site hosted in the EU), with 5 MB of storage, also the per-file upload limit, and a Hostsmith watermark. Custom domains start at Pro (Starter has none): 5 sites, 500 MB and 5 custom domains for $15 a month billed yearly or $21 billed monthly, as of November 2026 (Hostsmith's pricing). That's $4 to $6 a month less than Lovable Pro. Lovable can cost less still: a domain connected while you paid stays connected on Lovable's Free plan at $0, but Lovable may unpublish a Free project for inactivity. Hostsmith Pro's price buys a site, built from code you hold, that stays up until you delete it, with no expiry or sleeping, plus 50 GB of monthly bandwidth and no watermark. If it's a business site you'll run on your own domain for years, small business website hosting covers that setup.

Where this is the wrong answer: if the app has a live backend you're still iterating on, stay on Lovable. Letting the AI keep shipping changes is the whole point of vibe coding a website; exporting freezes the build, and every change after that is a fresh build and upload.

Lovable hosting vs. export + Hostsmith - side by side

Lovable ProHostsmith Pro
Price$25/mo, or $21/mo yearly$21/mo, or $15/mo yearly
Custom domainsYesYes, up to 5
Idle siteAfter a downgrade to Free, may be unpublishedStays up until you delete it
Runs TanStack StartYesNo, static files only
AI editing after launchYesNo, rebuild and re-upload
BackendBuilt-in backendNone (the app keeps calling Lovable's)

Prices checked November 21, 2026 on Lovable's plans page and in November 2026 on Hostsmith's pricing.

Frequently asked questions

Can I use a custom domain on Lovable's Free plan? No. The Free plan publishes only to lovable.app addresses; Pro, at $25 a month or $21 a month billed yearly, is the cheapest plan with custom domains.

What IP address does Lovable use for the A record? The standard value is 185.158.133.1, shared by many Lovable sites. Copy the exact IP from your own setup window, since that's the address Lovable checks for.

Does Lovable use a CNAME record? Only in proxy mode, when you connect with "Uses Cloudflare or similar proxy" turned on; then it asks for a CNAME in place of the A record, plus one for www if you kept the www redirect. A standard connection uses an A record, an AAAA record if listed, and a _lovable TXT record.

Can I use Cloudflare with Lovable? Yes. Set Lovable's records to DNS only (gray cloud), or reconnect the domain in proxy mode to keep the orange-cloud proxy.

Can I point a domain I bought through Lovable to Cloudflare's nameservers? Yes, but Lovable then stops managing its DNS, and the site stays offline until you recreate Lovable's records at Cloudflare.

Why is my Lovable custom domain not working? Usually a proxied Cloudflare record, records added somewhere other than where the nameservers point, an old A, AAAA or CNAME record at the same name, a truncated TXT value, a CAA record blocking the certificate, or DNS that hasn't propagated.

Does Lovable use 301 redirects for my domain? No. Lovable redirects other connected domains to the primary with a 302, or a 307 for form submissions, and uses a 301 only from http:// to https://.

Does my lovable.app address stay active after I connect a custom domain? Yes, it can't be removed, and once your primary domain is Active it redirects there. Disconnecting a custom domain doesn't cancel its registration, so you can connect it again later.

What happens if I cancel my Lovable subscription? Domains that are already connected keep serving your published app, on the Free plan's terms. You can't connect or buy new domains until you upgrade again, and a domain bought through Lovable renews separately.

Can I host my Lovable app somewhere else and keep my domain? Yes. For a React + Vite app, build it, upload the dist folder to a static host, and point your domain there. A TanStack Start app with no server functions, server routes or data loaded per request goes the same way once it's prerendered, with .output/public in place of dist; one that has them needs a host that runs server code.


Putting a site on your own domain used to mean typing an IP address into a registrar's DNS panel, and the core of the job hasn't moved: an A record at the apex, with a TXT record and the odd CAA record as newer paperwork. Nearly every stuck setup is one of those records missing, misplaced or stuck behind the proxy.

Got a React + Vite build ready to leave Lovable? Zip the dist folder and drop it at hostsmith.net (signing up needs no credit card), then check the build on its hostsmith.link address before you move the domain over.