How to Connect a Custom Domain to Lovable

To connect a custom domain to Lovable, open Project settings → Domains → Connect domain, enter your root domain or subdomain, then add the DNS records Lovable shows at your domain provider — or let Lovable add them automatically. Once DNS has spread, Lovable issues your SSL certificate and your domain serves the app. Custom domains need a paid plan, and the project must be published before the domain serves content.
Before you begin
- A published Lovable project — publish first if you have not already (see the publishing tutorial on this site).
- A paid Lovable plan, because custom domains are not available on the free plan.
- Access to your domain provider’s DNS settings. If you have not got a domain yet, buy one at any registrar, or join Lovable and build the site first.
Choose a root domain or a subdomain
A root domain is yourdomain.com. When you connect one, Lovable also sets up www.yourdomain.com and, by default, redirects the www address to the root. A subdomain is something like app.yourdomain.com — useful when your main domain points elsewhere, for example at email or an existing site.
Connect the domain
-
Open Project settings → Domains (or Publish → Add domain) and click Connect domain.
-
Enter your domain and choose root or subdomain. For a root domain, leave Redirect www.yourdomain.com → yourdomain.com on unless you have a reason not to.
-
Add the DNS records. The easiest path is automatic setup, where Lovable asks your detected provider to add the records. For manual setup, copy the exact verification value shown in Lovable’s setup window and add:
- Root domain: an
Arecord with host@pointing to185.158.133.1, plus aTXTrecord with host_lovableand the shownlovable_verify=…value. - For
www: its ownArecord with hostwww(same IP) and aTXTrecord with host_lovable.wwwusing the value from thewwwsetup window. - Subdomain: an
Arecord with hostapp(your label), plusTXTat_lovable.app.
Use TTL 300 seconds or your provider’s default. Some providers need a blank host field or the full domain instead of
@. - Root domain: an
-
Remove conflicting records for the hostnames you are connecting — old
A,AAAAorCNAMErecords from a previous host can block setup. LeaveMXrecords alone so email keeps working. -
Click Check status in Lovable. DNS propagation can take up to 72 hours, although it is often much quicker.
-
Wait for SSL. Lovable issues and installs the certificate automatically. Avoid opening the domain while it is provisioning — browsers may show a security warning mid-setup. If setup stalls, click Retry; if you use
CAArecords, they must allow Lovable’s certificate authorities.
Ask Lovable for help at any point:
I am connecting the custom domain example.com. Show me the exact DNS records I need to add at my provider, including the verification TXT values.
Set the primary domain
The first custom domain usually becomes primary automatically. To change it, open the three-dot menu next to a Live domain in Project settings → Domains and choose Set as primary. Other connected domains then redirect to the primary with a temporary 302 redirect. Choose Unset as primary if you prefer every domain to serve the app at its own address.
How to verify it works
- The domain shows Live on the Domains page.
https://yourdomain.comloads the app without a certificate warning.www.yourdomain.comredirects to the root (if you kept the redirect on).- Your original
lovable.appaddress still works.
Common errors and fixes
- Stuck on verifying. A conflicting old
A,AAAAorCNAMErecord usually blocks setup. Remove duplicates for the hostname and check again. - SSL fails. Check
CAArecords allow the certificate authorities Lovable uses, then click Retry. - Email stopped working. You probably deleted or changed
MXrecords. Restore them at your provider — they are unrelated to the website records. - A security warning in the browser. The certificate may still be provisioning. Wait for the domain to show Live before visiting.
Frequently asked questions
How long does DNS take? Up to 72 hours; most domains are ready much sooner.
Can I connect several domains? Yes. One is primary and the others redirect to it, unless you unset the primary.
Can I connect only a subdomain? Yes — enter the full subdomain such as app.yourdomain.com.
Does this cost extra? Custom domains require a paid Lovable plan; the domain itself you buy at a registrar.
Official sources and next steps
Once your domain is live, submit it to Google Search Console and add analytics. If you need a project to connect, join Lovable and publish one first.
Keep learning

How to Add Google Analytics to Your Lovable Application
Create a Google Analytics connector with your GA4 measurement ID, ask Lovable to link the project, and gtag.js loads on your pages — confirm it in the GA4 Realtime report.

How to Deploy a Lovable Project Outside Lovable Hosting
Sync your project to GitHub and deploy from your own host: TanStack Start projects need server-capable hosting, older React + Vite projects can be static — configure the build, set the environment variables and test before switching.

How to Connect Google Search Console to a Lovable Website
Add the Google Search Console connector in Lovable, publish your site, then ask Lovable to verify it with a meta tag and submit your sitemap — your indexing data then appears in Search Console.
Get the next write-up
New builds and articles, straight to your inbox.
