Lovable www not working on your custom domain? Fixes
Lovable site loads on the bare domain but www fails? See why a lone A record or Cloudflare proxy causes it, how to check DNS, and how to fix www.
The Liite team8分で読めます
Short answer
www.yourdomain.com is a separate hostname from yourdomain.com, so it needs its own DNS record and has to be connected in Lovable too. Add the www record Lovable shows, connect that name in the project's domain settings, and set any Cloudflare records to DNS only (grey cloud) until the domain shows as live.
You connected a custom domain to a Lovable project. yourdomain.com opens your app, but www.yourdomain.com shows a DNS error, a certificate warning or nothing at all (or it is the other way round). A public Let's Encrypt community thread from August 2025, "www not working using lovable.dev", describes this. The user had a single A record set up through Cloudflare, and the helpers there sent them back to the host.
Why www fails when the root works
Most common first:
- There is no DNS record for
www. The root andwwware two names in DNS. An A record on the root does nothing forwww, sowwwhas nowhere to point. Cloudflare's docs describe the same rule: you create a record for each subdomain label, such aswww, and the host has to be able to serve that hostname. They also warn that a domain without the right records can giveDNS_PROBE_FINISHED_NXDOMAINerrors. - Only one name is connected in the host. Even with DNS right, the host has to know which hostnames to serve and issue a certificate for. If you connected only the root in Lovable,
wwwcan still fail. - A proxy sits in front of the record. With Cloudflare's orange cloud on, a DNS-only record answers with your server's real IP and does not route HTTP/HTTPS traffic through Cloudflare, while a proxied one answers with Cloudflare's addresses. Cloudflare says a new domain should start with all records DNS-only, so the proxy doesn't intercept traffic before an edge certificate is active. Its docs also list SaaS-hosted websites among the services that are often not compatible with the HTTP proxy.
- A leftover record conflicts. An old A, AAAA or CNAME for
www, or an extra AAAA or CAA record on the root, can send visitors somewhere else or block certificate issuance. Hostinger's guide for pointing a domain at Lovable tells you to remove the AAAA and CAA record for the root domain if there is one. - DNS hasn't propagated or is cached. Changes can take minutes to hours, and your own network may still hold the old answer.
We can't say from outside which one hit your project. The thread's helpers didn't confirm a cause, and Lovable's setup may have changed since August 2025.
Check what DNS says first
Run these two lookups (or use any online DNS lookup tool):
dig yourdomain.com
dig www.yourdomain.comThen match what you see to the table below.
| What you see | Likely cause | Fix |
|---|---|---|
No answer for www (NXDOMAIN) | No record for www | Add the www record Lovable shows |
www answers with Cloudflare IPs | Proxy (orange cloud) is on | Switch to DNS only, retest |
www answers, but a certificate warning appears | www not connected in Lovable, or the certificate isn't issued yet | Connect www in the project, wait, retest |
www answers with an address you don't recognize | Old or conflicting record | Delete it and keep one consistent answer |
Root fails, www works | Same problem in reverse | Add and connect the root too |
Cloudflare IPs vs. your host's IP are the quickest tell. Cloudflare's docs say a proxied record is answered with its anycast addresses instead of the origin IP.
How to fix it, step by step
1. Get the exact records from Lovable
- Open your Lovable project's domain settings (the Domains or custom domain section).
- Note every record it asks for. Hostinger's Lovable guide says Lovable provides A and TXT records to add to your domain's DNS zone. Use the values shown in your own project, not values from a tutorial, because they can change.
- Check Lovable's own custom domain documentation for whether
wwwneeds its own record and its own entry in the project.
2. Add the www record and connect both names
- In your DNS provider, create a record named
wwwwith the type and value Lovable gives for it. If Lovable's page doesn't spell outwww, ask support (see below) rather than guessing a value. - Back in Lovable, add
www.yourdomain.comas a domain next to the root. If the settings let you choose a primary name and redirect the other, pick one and keep it consistent. - Wait for the status to become live. Hostinger's guide says you should wait for verification and SSL certificate to be issued before expecting the domain to work.
3. Turn the Cloudflare proxy off for these records
- In Cloudflare, open DNS > Records for your domain.
- Click the orange cloud on the root and
wwwrecords so it turns grey (DNS only). - Wait until Lovable shows the domain as live and HTTPS works on both names.
- Only then, if you want Cloudflare's proxy, turn it on for one record and test again. Cloudflare's own migration advice is to start with DNS only, confirm resolution works, then enable the proxy for specific HTTP(S) records and test again. If
wwwbreaks after that, leave it grey. This is the generic Cloudflare approach, not a Lovable-confirmed setup.
4. Clean up conflicting records
- List every record whose name is
wwwor@. - Delete leftover A, AAAA or CNAME records that point somewhere other than what Lovable asked for. A name with a CNAME shouldn't carry other record types.
- If you have an AAAA or CAA record on the root that Lovable didn't ask for, remove it, as in the Hostinger guide above.
- If your registrar has "URL redirect" or "forwarding" features switched on for
www, turn them off. They can compete with DNS records.
5. Wait, then test properly
- Wait for the records to spread (a few minutes to a few hours).
- Open
https://www.yourdomain.comin a private window. - Run
digagain from a different network or a public lookup tool, so your local cache doesn't mislead you.
Don't delete mail records
When you clean up the zone, leave MX and mail-related TXT records alone. Deleting them can stop your email, and they have nothing to do with your website.
Checklist before you try again
dig www.yourdomain.comreturns an answer that matches Lovable's instructions.- The root name returns the answer Lovable asked for.
- Both names are added in the Lovable project's domain settings.
- Cloudflare records for the site are DNS only while the domain is being verified.
- No leftover A, AAAA, CNAME, CAA or forwarding rules fight the new records.
- You waited at least a few hours and tested from a second network.
What won't help
- Requesting a Let's Encrypt certificate yourself. The host serves your site, so the certificate has to be issued by or through the host.
- Clearing your browser cache when the lookup itself fails. The problem is in DNS.
- Waiting for days without checking. If
digstill shows the wrong answer after several hours, the record is wrong, not slow. - Copying records from a guide for another host. The values are specific to the host and can change.
If nothing works
Contact Lovable support from your project, and mention your DNS provider if it's Cloudflare. Include the exact symptom, the output of both dig commands, a screenshot of your DNS records and of the project's domain settings, and what you've already tried. If the problem is in the zone itself, your DNS provider or registrar's support can check records and propagation.
Subject: www.yourdomain.com not working on my Lovable custom domain
Hi, my project's custom domain works on yourdomain.com but not on
www.yourdomain.com.
Symptom: [DNS error / certificate warning / blank page]
DNS provider: [Cloudflare / other]
Records for www and the root: [paste or attach screenshot]
Output of "dig www.yourdomain.com": [paste]
Proxy status: DNS only (grey cloud) since [date/time]
Steps already tried: added www record, connected www in domain settings,
removed conflicting records, waited [N] hours
Can you check the certificate and domain status for both names?Where Liite fits
Liite isn't a Lovable replacement, and moving a project means rebuilding it. If you only want to know how a custom domain behaves elsewhere: on Pro and up, a Liite site gets one custom domain. You enter the apex or www, the other redirects to it, and you add the DNS records Liite shows until the status turns Active. The HTTPS certificate is set up automatically. The steps are in the custom domains docs.
Common questions
Do I need both the root and www connected?
Not strictly, but it's the simplest way to avoid errors, because visitors and links use both. Connect both and, if Lovable lets you, choose one as the main address and redirect the other.
Can I just use a CNAME on the root?
Generally not. A CNAME on the bare domain conflicts with the other records every root needs (such as mail), so hosts give you an A record for the root instead. Microsoft's Azure docs say the same: don't use a CNAME for the root domain (see RFC 1912, section 2.4). Follow Lovable's instructions for the exact type.
Why does it work on my phone but not on my laptop?
Usually cached DNS or a stale certificate on one device. Test from another network, use a private window, and compare dig output from both.
Is Cloudflare's proxy always a problem with Lovable?
We can't say. The Let's Encrypt thread didn't settle it, and Lovable's current guidance may differ. DNS only is the safest state while the domain is being verified, and you can test the proxy afterwards.