Prerequisites
Before connecting a domain from another provider, check that:- You have project editor permissions or higher to connect and disconnect domains.
- You have access to the DNS settings for the domain or subdomain you want to connect. Ownership verification requires adding the DNS records Lovable provides during setup, including a verification
TXTrecord. - At your DNS provider, compare the hostname’s
A,AAAA, andCNAMErecords with the records Lovable provides during setup. These records point a name at a server. Remove records from a previous host, which can send some or all visitors there instead of your app. - Your Certificate Authority Authorization (
CAA) records, if you have any, allow Lovable to issue SSL certificates for the domain. See My domain has CAA records and SSL setup fails.
Connect your domain
Follow the steps below to connect the domain:Connect domain
Enter your domain
- Enter your domain or subdomain (for example,
yourdomain.comorblog.yourdomain.com). - Click Continue.
Choose root domain or subdomain
-
Root domain connects
yourdomain.com. The Redirectwww.yourdomain.com→yourdomain.comoption is enabled by default. With the option enabled, Lovable also connectswww.yourdomain.com, groups it with the root domain, and redirectswwwvisitors to your primary domain. Disable the option to connect only the root domain. -
Subdomain connects a subdomain such as
blog.yourdomain.com. Enter the subdomain prefix (for example,blog). If you entered a full subdomain in the previous step, Lovable fills in the prefix.
Configure DNS records
www redirect, the window includes records for both the root domain and www.If you close the window before you finish signing in to your provider, or before you open the manual setup, Lovable cancels the connection you just started.A connection that was already listed in the Domains tab stays when you close the window. To return to it, use Set up DNS below the domain, or open its three dots menu and select Setup instructions.Connect your domain in one of two ways:- Automatic setup with Entri
Entri detects your domain provider and asks you to sign in. Authorize the update, and Entri adds the records for you. When Entri cannot detect the provider, it asks you to choose one: select yours from the list. When Entri names the wrong provider, select Connect a different way, then Change provider for the same list. - Manual setup
To add the records yourself, select Connect a different way, then Set up manually. When Entri shows its provider list instead of a detected provider, select Setup manually below the list. Copy the records from the window and add them at your domain registrar or DNS provider.
- The
Arecord points your domain to the IP address Lovable shows for that domain. - If Lovable also lists an
AAAArecord, add it as well. The record points your domain to the IPv6 address Lovable shows. IPv6 is a newer type of internet address. - The verification
TXTrecord uses the host_lovablefor a root domain or_lovable.<prefix>for a subdomain (for example,_lovable.blog), and a value starting withlovable_verify=.
www have their own records, and Lovable can ask you to update an address later.A record and, when listed, the AAAA record. Depending on your provider, the hostname may need to be:@for a root domain- left blank
- set to your domain name (for example,
example.com) - or the subdomain label (for example,
blog) when connecting a subdomain
Verify and go live
Advanced: use a CDN or reverse proxy
Lovable can be used behind your own , such as Cloudflare, CloudFront, or Fastly. When you manage the domain’s DNS at another provider, enable Advanced → Uses Cloudflare or similar proxy while connecting the domain. When this option is enabled:- You are responsible for configuring and maintaining your CDN or proxy
- Lovable does not configure, validate, or monitor your CDN or proxy setup
Open the connection flow
Enter your domain or subdomain, then click Continue
Choose Root domain or Subdomain
Expand Advanced
Enable Uses Cloudflare or similar proxy
Confirm the connection
CNAME record instead of an A record, pointing at your project’s published address. Publish the project first, so that address exists. Lovable does not ask for a verification TXT record in this mode. If you connected the root domain with the www redirect enabled, Lovable provides a CNAME record for each of the two addresses.Add the CNAME record
CNAME record to your domain’s DNS settings at your DNS provider.CNAME record is pointed correctly, Lovable issues the SSL certificates.
Traffic will then flow through your CDN or proxy before reaching Lovable.
To check progress or manage the connection, see Domain statuses and Manage project domains.
FAQ
These questions cover connecting a domain that stays registered with another provider. For domain statuses, primary domains, and project connections, see Set up a custom domain.My domain shows my old website instead of my Lovable app.
My domain shows my old website instead of my Lovable app.
A, AAAA, or CNAME records left over from your previous website or hosting provider. Follow My domain shows the wrong site or an outdated version to compare and remove conflicting records.I see a Cloudflare error 1001 or 1003 on my domain.
I see a Cloudflare error 1001 or 1003 on my domain.
Can I connect a subdomain instead of a full domain?
Can I connect a subdomain instead of a full domain?
app.yourdomain.com, instead of the root domain. See Connect your domain for the steps.Can I connect multiple subdomains?
Can I connect multiple subdomains?
blog.yourdomain.com, shop.yourdomain.com, and app.yourdomain.com.Troubleshooting
Start with the message shown below your domain in Project → Settings → Domains. The entries below are for a domain whose DNS you manage at another provider. If Lovable manages your domain’s DNS instead, see Where do I add or edit DNS records?.My custom domain is connected, but it never becomes live
My custom domain is connected, but it never becomes live
- Ask Lovable in the project chat about the domain. It reports what state the domain is in, how long it has been there, which DNS records it expects and whether it can see them, and whether the project is published.
- 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 has CAA records and SSL setup fails
My domain has CAA records and SSL setup fails
CAA records, those records may be blocking your SSL certificate. CAA records restrict which certificate authorities can issue certificates for your domain.At your DNS provider, add CAA records that allow at least one of the certificate authorities Lovable uses. We recommend allowing all three so Lovable can use any of them:- Google Trust Services:
0 issue "pki.goog" - Let’s Encrypt:
0 issue "letsencrypt.org" - SSL.com:
0 issue "ssl.com"
0, tag issue, and the issuer domain as the value, for example ssl.com without quotation marks.Check the parent domain too. For example, app.example.com inherits CAA records from example.com if it has no CAA records of its own. If you cannot change the parent domain’s records, add the CAA records at the subdomain you are connecting instead. CAA records at app.example.com take precedence over the ones at example.com.Alternatively, remove the CAA records if your organization no longer needs to restrict which authorities can issue certificates.After the DNS changes take effect, open the domain’s three dots menu in Project → Settings → Domains, select Check again, and wait for Active.My domain shows the wrong site or an outdated version
My domain shows the wrong site or an outdated version
A or AAAA record at your DNS provider can send visitors to the wrong site, even when Lovable shows the domain as Active.Some DNS providers add an AAAA record to a new domain automatically. Visitors whose devices prefer IPv6 can reach that address instead of your Lovable app.To resolve this:- Find the records Lovable provides for this hostname. Workspace admins and owners can open the domain in Workspace settings → Workspace domains and expand the project under Projects to see its addresses and DNS records.
- You can also ask Lovable in the project chat which records the domain needs.
- If you cannot find the expected records, contact Lovable Support before changing your DNS.
- Open dnschecker.org, enter your domain, and check both the
AandAAAAresults. Compare each result with the records Lovable provides. - At your DNS provider, keep the records Lovable provides for the hostname and remove every other
A,AAAA, orCNAMErecord at that name. Leave unrelated records, includingMXrecords for email, in place. - Wait for the change to take effect, then open your site again.
Looking for your DNS records
Looking for your DNS records
TXT value.For a standard connection, keep every provided A record and, when listed, every AAAA record pointed directly at the addresses Lovable shows. Disable proxying while setup completes. To use a proxy, follow Advanced: use a CDN or reverse proxy.After correcting the records, select Check again in the domain’s three dots menu. When Lovable finds the records but other networks are still updating, the progress line reads DNS records found, waiting for them to take effect.Domain Service Error
Domain Service Error
- A script-blocking browser extension
- A network that filters third-party scripts
- A connection that needs more than 10 seconds to load the window
- To add the records at your DNS provider yourself, open the domain’s three dots menu and select Setup instructions.
- To use the setup window instead, allow scripts for Lovable in your ad blocker or script blocker, or try another browser or network, then select Set up DNS below the domain.
Some DNS records for this domain are missing or wrong, so visitors may not reach it.
Some DNS records for this domain are missing or wrong, so visitors may not reach it.
AAAA record. After correcting the records, open the three dots menu and select Check again.If you moved the domain to another service intentionally, select Disconnect. If the problem remains, contact Lovable Support.