Lovable hosts your published app and issues the SSL certificate for you. Cloudflare is optional. If you want it, open your domain settings in Lovable, expand Advanced, and turn on "Domain uses Cloudflare or a similar proxy". Lovable then gives you CNAME records instead of an A record, and no TXT verification record is needed. If you don't turn that on, use the A record and TXT record Lovable provides and set both to DNS only in Cloudflare. Mixing the two methods is what breaks most domains.
Guides / Lovable How-To Guides
Does Lovable Use CloudFlare?
/ Updated / 12 min read
TL;DR
Key takeaways
- Lovable's standard setup uses an A record pointing to 185.158.133.1 plus a verification TXT record.
- Proxy mode is a toggle inside Lovable's Advanced domain settings, and it swaps the A record for CNAME records.
- In the standard setup, Cloudflare records must be DNS only (the gray cloud). Orange cloud causes Cloudflare errors 1001 or 1003.
- Root domain and www each need their own CNAME when you use proxy mode.
- You own and maintain the proxy, not Lovable. If your Cloudflare rules break the site, that's your fix to make.
- You can buy a domain inside Lovable on a paid plan, and you can later point it at Cloudflare nameservers if you want.
On this page
- Does Lovable run on Cloudflare behind the scenes?
- What a Cloudflare Lovable setup needs on a paid Lovable plan
- The two ways to point a domain at Lovable
- Buying your domain inside Lovable, then handing DNS to Cloudflare
- What Cloudflare won't fix
- The Cloudflare API connector, and what it does not do
- How to tell what's actually wrong
- Status labels, and how long to keep waiting
- So should you use Cloudflare with Lovable?
- Moving a Lovable project to a GitHub repository first
- Read this next
- Frequently asked questions
No, not in the way the question usually means. Lovable doesn't require a Cloudflare account, and you don't need one to get an app online with HTTPS. What Lovable does support is you putting Cloudflare in front of your own domain, and since April 2026 there's an official setting for exactly that.
Does Lovable run on Cloudflare behind the scenes?
Your published app lives at an address like your-app.lovable.app. Lovable handles the servers, the deployment and the certificate. You never touch any of it. Which CDN vendor sits inside that path isn't something Lovable publishes, and it isn't something you can change, so it's a trivia question rather than a useful one.
The part you control is the domain you own. That's where Cloudflare actually matters. Once you point yourbusiness.com at a Lovable app, you decide whether traffic goes straight through or passes through Cloudflare's network first. Both work. They just need different DNS records, and getting that choice wrong is the single most common reason a custom domain refuses to connect.
What a Cloudflare Lovable setup needs on a paid Lovable plan
Every Cloudflare Lovable setup begins inside Lovable, not inside Cloudflare. Lovable's documentation says "Connecting a new domain requires a paid plan." The free plan includes lovable.app addresses, and on Lovable's pricing page custom domains first appear on Pro, which is $25 a month. A custom domain gives your Lovable project a branded URL instead of a lovable.app address.
Here is what a paid Lovable plan gives a custom domain, according to Lovable's documentation.
- Lovable automatically generates and installs an SSL certificate for every connected custom domain. You do not upload one from your registrar or from Cloudflare.
- All custom domains use TLS 1.2 or newer, and Lovable rejects connections over TLS 1.0 and 1.1.
- Plain HTTP requests are always redirected to HTTPS.
- Domains that are already connected keep working if you later downgrade.
- Different subdomains of the same domain can point to different projects, but the exact same domain cannot go to more than one project.
One example catches people out. If the domain has a CAA record in Cloudflare, it must allow at least one certificate authority that Lovable uses. Check that before you blame the proxy.
The two ways to point a domain at Lovable
Lovable gives you one set of records if you're not using a proxy and a different set if you are. Pick one path and follow it all the way through. Half of one and half of the other will fail.
The standard setup, no proxy
This is the default. In Lovable you connect your domain, and Lovable shows you an A record pointing to 185.158.133.1 along with a TXT record that proves you own the domain. You add both in Cloudflare's DNS panel.
Here's the bit people miss. Cloudflare puts a little cloud icon next to every record. Orange means Cloudflare proxies the traffic. Gray means DNS only, which is Cloudflare just answering the lookup and stepping aside. For the standard Lovable setup, both records need to be gray. Leave them orange and you'll get Cloudflare error 1001 or 1003, which are Cloudflare's way of saying it can't reach or can't resolve what's behind the record.
Proxy mode, when you actually want Cloudflare in the path
If you want Cloudflare doing real work, like caching, a firewall or Workers, use the supported route. Connect the domain in Lovable, expand the Advanced section, and switch on "Domain uses Cloudflare or a similar proxy". Lovable changes the instructions. You get a CNAME setup instead, the CNAME replaces the A record, and the TXT verification record is no longer required.
If you're connecting both the bare domain and www, Lovable provides a CNAME for each one. Add both. And understand the deal you're making. Lovable's documentation is clear that you configure and maintain the proxy, not Lovable. If a caching rule you wrote serves a stale version of your app, that's yours to debug.
Older guides say to never use A records with Lovable and to turn the orange cloud on for every record. Both of those are wrong now. A records are the standard setup, and orange clouds belong only in proxy mode with the CNAME records Lovable hands you.
Buying your domain inside Lovable, then handing DNS to Cloudflare
Since April 2026, paid plans can buy a domain without leaving Lovable. The flow handles registration, DNS, the certificate and the root plus www pairing. Domains sit at the workspace level, so one domain can be connected to a project rather than being locked to the project where you bought it. For most small business apps, this is the fastest route by a wide margin. No registrar account, no DNS panel, nothing to copy and paste wrong.
From September 2026 you can also do this in the project chat. Ask Lovable to set up a custom domain and it will show available options or connect one you already own, with a confirmation step before it buys or connects anything. Buying through chat is limited to workspace admins and owners on paid plans, which is a sensible guardrail given it spends money.
If you later decide you want Cloudflare managing that domain, there's a path for it. Since June 2026, workspace admins and owners can point a Lovable-purchased domain at custom nameservers through Workspace settings, then Workspace domains, then Configure, then Nameservers. Cloudflare's nameservers go in there.
The moment you switch to custom nameservers, Lovable stops managing your DNS. Every record has to be recreated at the new provider, including the ones your email depends on. If you skip the mail records, your email stops arriving and it won't be obvious why for a day or two.
What Cloudflare won't fix
Cloudflare is good at what it does. It is not a performance miracle for an app that's slow for other reasons. If your Lovable app ships a big JavaScript bundle, Cloudflare caching barely moves the needle, because the browser still has to download and run that bundle. Same with huge uncompressed images. Resize them before you upload them and you'll gain more than any CDN setting gives you.
It also does nothing for your backend calls. When your app queries data or runs a function, that request goes to the origin every time. Cloudflare can't cache a logged-in user's dashboard, and you wouldn't want it to.
Then there are the features that actively break things. Rocket Loader and aggressive JavaScript minification can mangle a React app. Bot Fight Mode and overly keen firewall rules can block legitimate API calls, including webhooks from payment providers, which fail quietly and leave you staring at orders that never completed. Page rules that cache HTML will happily serve last week's version of your site to everyone except you, because your browser has the new one.
The last trade-off is the boring one. You now have two dashboards. App logic in Lovable, DNS and security in Cloudflare. When something stops working you have to figure out which side owns the problem before you can fix it. That's fine if you want the control. It's unnecessary friction if you don't.
Change one DNS record at a time and give it fifteen to thirty minutes before judging the result. DNS changes don't apply instantly everywhere, and three simultaneous edits turn a five minute fix into an afternoon of guessing.
The Cloudflare API connector, and what it does not do
Lovable also has a Cloudflare API connector, and it is easy to confuse with hosting. The connector lets a Lovable app call the Cloudflare v4 API with an API token from your Cloudflare account. Lovable's documentation is clear that it "does not deploy, host, or publish your Lovable app on Cloudflare Pages or Workers." Publishing still happens through Lovable's own publish flow.
With the right token, an app can do these things.
- List zones and edit records, for example in an internal admin tool.
- Show traffic and security event analytics on a dashboard.
- Purge the Cloudflare cache after a content update.
- Work with Workers scripts, R2 buckets and KV namespaces.
- Review WAF custom rules, IP access rules and bot settings.
To get going, create an API token in Cloudflare with only the permissions the app needs, then open Connectors in Lovable, select Cloudflare API and enter the token. Lovable will verify the token when you save it. The connector does not accept a Global API Key, and the connection stays private until you share it. If you roll or delete the token in Cloudflare, update the connection before calls continue to work.
Take the warning in the documentation seriously. "Your API token functions like a password. Keep it secure and never share it publicly." Treat it like your other passwords and never paste it into public pages or links. A token that can edit records or delete resources can break live traffic, and one that can create R2 buckets, KV namespaces or Workers can add charges to your Cloudflare bill.
How to tell what's actually wrong
Lovable added domain status checks in September 2026. Your domain settings now show a status, and when something fails you'll see Connection issue or Check failed, with a retry option. Connection issue means the check ran and found a problem with your records. Check failed means the check itself couldn't complete, which is often temporary.
Work through it in order. Confirm you picked one method and stuck to it. If you're on the standard setup, the A record should point to 185.158.133.1, the TXT record should be present, and every Cloudflare record involved should be gray. If you're in proxy mode, the Advanced toggle should be on in Lovable and your records should be the CNAMEs Lovable gave you. Then retry the check. Most failures are one leftover record from a previous attempt.
Enterprise workspaces got another option in October 2026. Admins and owners can set a workspace publishing domain so projects publish at your-app.yourdomain.com instead of your-app.lovable.app. A project moves to the new address the next time it's published, and its existing lovable.app address keeps working. That's useful for internal tools where you want everything under one company domain without configuring a domain per project.
Status labels, and how long to keep waiting
Lovable shows a connection status for each domain, and each one tells you whether to wait or act.
- Setting up domain. Lovable is still looking for your records. Keep waiting, and leave Cloudflare alone while it checks.
- Active. The domain is live with HTTPS. Share links to the site from here on.
- Needs attention. Something is wrong. Open the domain in Lovable, review the records it asks for, paste them into Cloudflare again and submit the change.
- Disconnecting. The domain is being removed from the project.
The certificate is the step that takes longest. Lovable's documentation says to contact Lovable Support if no certificate has been issued after 72 hours. Before that point, verify the records match what Lovable shows, then continue waiting. Changing them again usually adds time rather than saving it.
If someone else manages your Cloudflare account, share the exact records from Lovable as text rather than a screenshot, so nothing gets retyped wrong. And if you change which domain is primary, search engines may take time to show the change, depending on when they recrawl the site.
So should you use Cloudflare with Lovable?
If you're launching a marketing site or a small business app and you don't already live in Cloudflare, skip it. Buy the domain inside Lovable, let it handle DNS and SSL, and spend your time on the product. Lovable remains the best vibe coding tool for this kind of work, and the whole point is not babysitting infrastructure.
Use Cloudflare when you have a real reason. Your DNS is already there for email and other subdomains. You need a firewall or rate limiting in front of a public form. You're running Workers for something specific. You want country-level blocking. Those are good reasons, and proxy mode exists so you can do it without fighting the platform.
What you shouldn't do is add Cloudflare because it sounds like the professional choice. Every extra layer is another thing that can break at 11pm.
Moving a Lovable project to a GitHub repository first
Some teams want Cloudflare for more than the domain. They want the code itself on Cloudflare Pages, or behind Workers they control. That move starts with the code, not the domain.
Lovable's documentation says each project's codebase "can be synced to GitHub, GitLab, or Bitbucket with Git sync," and that you keep full ownership of your code. Connect GitHub from the Lovable project, let it push the code to a repository, and your developers have a copy they can build and deploy on other hosting.
Keep three things in mind before you launch anything outside Lovable.
- The backend, database and sign in still run where Lovable put them. Moving the front end pages to Cloudflare does not move your users or their data.
- Every edit made in Lovable after the move has to flow through the GitHub repository and a new build on the Cloudflare side.
- Passwords, API keys and other secrets belong in server side storage, never in code that loads in the browser. Lovable's documentation gives a clear warning that browser code can be read by anyone, and when you paste a key into the chat it helps you store it in Secrets.
For most apps, a custom domain on Lovable's own hosting is enough. Moving the code to Cloudflare hosting is worth it only when your team will own the build pipeline from then on.
Read this next
If you're weighing up where to host and run a business app long term, read AI app builder for small businesses. It covers the deployment decisions that matter once real customers start using what you built.
Related articles:
Frequently asked questions
Does Lovable require Cloudflare to use HTTPS?
No, Cloudflare is optional. Lovable hosts your published app and issues the SSL certificate for you automatically. You don't need a Cloudflare account to get an app online with HTTPS. Cloudflare is only relevant if you want to put it in front of your own custom domain.
What DNS records do I need for Lovable without Cloudflare?
In the standard setup, Lovable provides an A record pointing to 185.158.133.1 and a TXT verification record. Both must be set to DNS only (gray cloud) in Cloudflare. Using orange cloud instead causes Cloudflare errors 1001 or 1003. These two records are the only DNS configuration needed for basic domain connectivity.
How do I use Cloudflare with Lovable?
Enable proxy mode by opening your domain settings in Lovable, expanding Advanced, and turning on 'Domain uses Cloudflare or a similar proxy'. Lovable then provides CNAME records instead of an A record, and no TXT verification record is needed. Add all provided CNAME records, including separate ones for the root domain and www.
Can I buy a domain directly inside Lovable?
Yes, on paid plans since April 2026 you can buy a domain without leaving Lovable. The process handles registration, DNS, the SSL certificate, and the root plus www pairing automatically. Domains sit at the workspace level, so one domain can be connected to multiple projects rather than being locked to a single project.
What happens if I mix standard setup and proxy mode DNS records?
Mixing the two methods breaks most domains. You must pick one approach and follow it completely. Combining half of the standard setup with half of proxy mode will cause connection failures. Each method requires its own specific DNS records and configuration.
Can Cloudflare make my Lovable app faster?
Cloudflare's performance gains depend on what's actually slowing your app. If your Lovable app ships a large JavaScript bundle, Cloudflare caching barely improves speed because the browser still downloads and runs the bundle. Resizing images before upload typically yields more performance gains than CDN settings.
What DNS records do I need if I want Cloudflare in front of my Lovable app?
When you enable proxy mode in Lovable's Advanced settings, Lovable provides CNAME records instead of an A record. If you're using both a root domain and www, you'll get a separate CNAME for each. Add both CNAME records to your DNS panel. No TXT verification record is needed in proxy mode.
Does a Lovable custom domain need a paid Lovable plan?
Yes. Lovable's documentation says connecting a new domain requires a paid plan. Domains you already connected keep working if you downgrade later.
How long does Lovable take to issue an SSL certificate?
Lovable generates and installs the certificate automatically once it finds your records. If no certificate has been issued after 72 hours, Lovable's documentation says to contact Lovable Support.
Can I point subdomains of one domain at different Lovable projects?
Yes. Lovable supports connecting different subdomains of the same domain to different projects. The exact same domain cannot go to more than one project.
Can I push a Lovable project to GitHub and host it on Cloudflare?
You can sync each project to GitHub, GitLab or Bitbucket and build the code elsewhere. The backend and data stay where Lovable runs them, so plan that part before you move the front end.
Does the Cloudflare API connector host my Lovable app?
No. Lovable's documentation says the connector does not deploy, host or publish your app on Cloudflare Pages or Workers. It lets your app call the Cloudflare API with a token you create.
Does a custom domain help SEO for a Lovable app?
Yes. Search engines credit rankings and links to the address they index, so a custom domain builds authority for your own brand instead of for lovable.app.
Is HTTPS included with a Lovable custom domain?
Yes. Lovable automatically generates and installs an SSL certificate for each connected custom domain, redirects plain HTTP to HTTPS, and accepts only TLS 1.2 or newer.
Who pays for Cloudflare resources an app uses through the connector?
Your Cloudflare account does. Lovable's documentation says paid Cloudflare resources such as R2, KV and Workers are billed to your Cloudflare account, and API requests count toward Cloudflare's rate limits.
Share this article
Keep reading
The Biggest Limitations of Lovable Today
Lovable is fast for prototyping, but its generated code needs review, credit costs are hard to predict, and it leaves out tests, staging and security checks. Those gaps decide whether an app is production ready, and they can be fixed.
When the side project becomes the product
Built something in Lovable that a business now depends on?
A Lovable app often starts as a quick experiment and ends up carrying real work. Black Badger turns it into a production system your company owns, with its own data, access control and support. If you built the app, read how that works. If someone built it for the company you run, book a strategy call and bring the app. A written scope follows the call.
How a Lovable app becomes a production systemBook a strategy call
Who wrote this

David Verneuille
Founder, Black Badger Software Solutions
David Verneuille founded Black Badger after 18 years as a project manager and years implementing Smartsheet, monday.com, Wrike and Zoho for clients. He now builds custom systems that clients own outright, which is why the writing here is specific about where each platform fits and where it stops fitting.
