xxx.lovable.app project URL.
Connecting a custom domain improves your site’s:
- Brand identity - look more trustworthy and professional
- Search engine visibility - better SEO and discoverability
- Memorability - easier for users to share and remember
Prerequisites
To connect a custom domain, ensure that:- You are on a paid Lovable plan.
- Your project is published. See Publish your app for more information.
- You own a domain name. You can purchase one directly within Lovable (through IONOS).
- You have access to the DNS settings for the domain or subdomain you want to connect. Ownership verification requires adding DNS
AandTXTrecords provided by Lovable during setup. - There are no
AAAArecords set for the domain you are connecting. Having anAAAArecord can interfere with domain setup and cause traffic to be routed incorrectly.
- DNS determines where your domain points on the internet.
- A DNS provider is the service where you manage DNS records for your domain, such as
A,TXT, orAAAArecords. - An A record points a domain or subdomain to an IP address.
- A TXT record is used to verify domain ownership.
- An AAAA record points a domain to an IPv6 address and can interfere with domain setup if present.
- An SSL certificate enables HTTPS and allows browsers to securely connect to your site.
Connect a custom domain
You can connect a domain to your published Lovable project using automatic setup (powered by Entri) or manual DNS configuration. Both methods require verifying ownership of your domain. You can connect a domain from two locations:- Project → Settings → Domains
- Publish modal → Custom domain (can be done after publishing your project)
- Click Connect domain.
-
Enter your domain or subdomain (for example,
yourdomain.comorblog.yourdomain.com), click Connect domain, then click Continue.When adding a domain, Lovable does not automatically add thewwwsubdomain. You can add it separately if you want both. -
Now, you can connect your domain in two ways:
- Automatic setup with Entri: Select your domain provider from the list, log in, and authorize Entri to update your DNS records.
-
Manual setup: If your DNS provider is not listed, scroll to the bottom of the Select your domain provider modal and choose Go to our manual setup. Copy the
Arecord andTXTrecord and input them directly into your domain registrar or DNS provider.Note about the A record host nameWhen connecting a domain, we suggest a default host name for theArecord. However, some DNS providers handle this differently. Depending on your provider, the host name may need to be:@- left blank
- or set to your domain name (for example,
example.com)
- Click Done. Wait for verification and SSL certificate to be issued. When complete, the domain will become Live and your Lovable app will be live at your custom domain.
Advanced: Using a CDN or reverse proxy
Lovable can be used behind your own CDN or reverse proxy, such as Cloudflare, CloudFront, or Fastly. A CDN (Content Delivery Network) or reverse proxy is a service that receives requests for your domain and then forwards those requests to your app. It sits between your users and Lovable, and can be used to cache responses, add security controls, or customize how traffic is routed. When Allow traffic through a CDN or proxy is enabled, you are responsible for configuring and maintaining this setup after domain verification. Lovable does not configure, validate, or monitor your CDN or proxy. This option is available under Advanced when connecting a custom domain. If you are using a CDN or reverse proxy, follow these steps:- Expand Advanced and enable Allow traffic through a CDN or proxy when connecting a domain.
- Complete the initial domain setup as described in Connect a custom domain.
- If using the Automatic setup with Entri: You don’t need to change anything during the initial domain setup. Your domain’s A record will automatically point to Lovable’s IP address.
- If using the manual setup: Ensure your domain’s A record points directly to Lovable’s IP address and that proxying is disabled (DNS-only).
- Wait for the domain status to show Live.
Lovable verifies the domain and issues SSL certificates during this step. - Update your domain’s A record to point to your CDN or proxy.
Traffic will now flow through your infrastructure before reaching Lovable.
Domain statuses
Domains have clear statuses that reflect verification progress, DNS propagation, SSL certificate readiness, and required user action.| Status | Description | User action |
|---|---|---|
| Unpublished | Shown only for your xxx.lovable.app project URL when the project is not yet published. | Publish the project. |
| Ready | The domain is ready but the project was unpublished. When published again, the status automatically becomes Live. | Publish the project. |
| Action required | The custom domain setup was not completed. | Click Complete setup to finish connecting. |
| Verifying | Waiting for DNS records to propagate. | Click Check status to check the latest status and verify the DNS records. Check that your A and TXT records are added correctly at your DNS provider, especially the full TXT value. |
| Unable to verify | DNS verification did not complete within one hour. This usually means your DNS records are incorrect or still propagating. Note: DNS propagation can take up to 72 hours, although most updates are applied within a few hours. | Click Check status to refresh the status and re-verify your DNS records. Check that your A and TXT records are added correctly at your DNS provider, especially the full TXT value. |
| Setting up | Verification complete; SSL certificates are being issued. | No action required; domain will automatically move to Live or Failed. |
| Failed | Ownership verified, but SSL certificate could not be provisioned. | Click Retry to attempt again. |
| Live | Domain is live and serving your project. | No action required. |
| Offline | Domain was Live but DNS records are no longer valid. Your domain is no longer pointing to your project. | Click Recover. Review displayed DNS records and update them at your DNS provider to reconnect your domain. |
| Removed | This domain was removed because it was added to another project or DNS verification never completed (DNS records weren’t added correctly or didn’t finish propagating). | Click Reconnect to connect the domain again. |
Primary domain
Lovable allows you to set one domain as the primary domain.- The domain status must be Live in order to mark it as primary. Click the three dots menu next to your domain and click Set as primary.
- The first custom domain you add to a project automatically becomes the primary domain (for domains added after October 29, 2025).
- If a domain is primary, all other domains redirect to it.
- Only one domain can be primary at a time.
- You can unset the primary domain; in that case, all connected domains serve the project equally. Click the three dots menu next to your primary domain and click Unset as primary.
FAQ
Does Lovable provide an SSL certificate for my custom domain?
Does Lovable provide an SSL certificate for my custom domain?
Can I buy a domain through Lovable?
Can I buy a domain through Lovable?
Will connecting a custom domain affect my SEO?
Will connecting a custom domain affect my SEO?
Can I connect a subdomain instead of a full domain?
Can I connect a subdomain instead of a full domain?
blog.yourdomain.com or app.yourdomain.com) instead of the root domain. When entering your domain in the setup flow, just include the subdomain you want to use.Can I connect multiple subdomains to my Lovable project?
Can I connect multiple subdomains to my Lovable project?
blog.yourdomain.com, shop.yourdomain.com, and app.yourdomain.com.Where can I see my connected domains?
Where can I see my connected domains?
- Project → Settings → Domains - here you see all domains, regardless of their status
- Publish modal - here you see all Live domains
Can I connect a domain used by another project?
Can I connect a domain used by another project?
How do I set a primary domain?
How do I set a primary domain?
How do I unset a primary domain?
How do I unset a primary domain?
How do I remove a custom domain?
How do I remove a custom domain?
- Go to Project → Settings → Domains.
- Click the three dots menu next to your domain, click Remove, then click Remove again to confirm.
Can I remove the xxx.lovable.app project URL?
Can I remove the xxx.lovable.app project URL?
xxx.lovable.app project URL from your project. However, you can add a custom domain and set it as your primary domain. This allows visitors to access your app from a branded URL instead of the default xxx.lovable.app project URL.Do I need to connect a www subdomain separately?
Do I need to connect a www subdomain separately?
Should I enable the advanced setting "Allow traffic through a CDN or proxy" for my custom domain?
Should I enable the advanced setting "Allow traffic through a CDN or proxy" for my custom domain?
Troubleshooting
My custom domain is connected, but it never becomes live
My custom domain is connected, but it never becomes live
- Use a DNS lookup tool like dnschecker.org to confirm that your domain resolves to the expected records. DNS changes can take up to 72 hours to propagate.
- Go to Project → Settings → Domains and confirm the DNS records Lovable expects.
- Clear your browser cache or test the site in an incognito window.
- Try removing and re-adding the domain in Project → Settings → Domains.
My domain shows the wrong site or an outdated version
My domain shows the wrong site or an outdated version
AAAA) record.Check whether your domain has any AAAA records configured. An AAAA record can interfere with domain routing and cause traffic to bypass the expected destination.To resolve this:- Review your DNS settings at your DNS provider.
- Remove any
AAAArecords for the domain. - Retry connecting the domain after the change has propagated.
My domain stays in the "Verifying" state during manual setup
My domain stays in the "Verifying" state during manual setup
A record is modified before verification finishes, Lovable cannot verify the domain or issue SSL certificates.While verification is in progress:- Do not enable proxying on the
Arecord. - Do not point the
Arecord to a CDN or reverse proxy.
- Disable proxying (DNS-only) on the provided
Arecord. - Ensure the
Arecord points directly to Lovable’s IP address. - Wait for the domain status to change to Live.
- If you are using a CDN or reverse proxy, such as with Allow traffic through a CDN or proxy, update the
Arecord to point back to your CDN or proxy.