Skip to main content
A custom domain lets you use your own domain or subdomain for your Lovable project instead of the default xxx.lovable.app 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
Custom domains are available on paid plans. This page covers what applies to every custom domain: where its DNS records live, what each status means, and how to manage a project’s domains.

Choose how to set up your domain

You can set up a domain at any time, but you need to publish your project before your domain can start serving your site.

Buy a domain through Lovable

Lovable registers the domain and sets up its DNS records and SSL certificate.

Connect a domain from another provider

Point a domain you already own at your project while it stays registered elsewhere.

Transfer a domain to Lovable

Move a domain’s registration to Lovable so renewals and DNS live in one place.
For the end-to-end path from publishing to a live site on your own domain, follow the guide Launch your site on a custom domain. On the Enterprise plan, a workspace can also connect one publishing domain, so that every project it publishes gets an address under that domain without a per-project setup. You can access the domain setup from:
  • Project → Settings → Domains
  • Publish dialog → Add domain
  • Workspace settings → Workspace domains
  • Chats or the project chat, by asking Lovable
In Project → Settings → Domains, Lovable lists the project’s domains and email senders under Connected domains, grouped by root domain. To add a domain:
  • Buy a domain: for the project’s first domain, search under Find and buy a domain. After that, click Buy a new domain under More domains. An In your workspace badge marks results your workspace already owns.
  • Connect a domain you own: for the first domain, click Connect under Connect a domain you own. After that, click Connect domain under More domains.
  • Use a workspace domain: workspace admins and owners can select a domain registered through Lovable under Connect a workspace domain. The row shows up to 5 domains, with domains not yet serving a site listed first. To connect a domain the row does not show, use Connect or Connect domain and search for it.
From the project chat, you can ask Lovable to find a new domain, connect a domain you already own, or check how setup is going. Lovable asks you to confirm before buying or connecting. The same plan and permission requirements apply as in Project → Settings → Domains. You can’t choose the primary domain from the project chat. A domain you buy there for the project can still become its primary domain, as described in Primary domain.

Where do I add or edit DNS records?

Where you change a domain’s records depends on the nameservers the domain uses, not on where you bought it. A domain bought through Lovable and later pointed at your own nameservers is managed at your provider, as any other domain from another provider is. To check which case applies, open the domain in Workspace settings → Workspace domains and expand Advanced → DNS records. An Add record button there means Lovable maintains the domain’s records. A read-only list means you add and correct them at your provider. You need to be a workspace admin or owner to open this page. When Lovable maintains the records and the domain still shows a problem, there is nothing for you to correct. Select Check again from the domain’s three dots menu, and contact Lovable Support if the status does not change.

Add or edit DNS records for a domain bought through Lovable

When a domain uses Lovable’s nameservers, you can add your own DNS records alongside the ones Lovable creates automatically. Use this to add a TXT record for third-party domain verification (for example, Google Search Console or Google Workspace), an MX record for email, or any other records your setup requires. You need to be a workspace admin or owner to change DNS records. Go to Workspace domains (Workspace settings → Workspace domains), open the domain, and expand Advanced → DNS records. Click Add record and fill in the form:
  • Type: select the record type. You can add A, AAAA, CNAME, MX, TXT, SRV, and NS records.
  • Host: the subdomain the record applies to. Use @ for the root domain (for example, yourdomain.com), or a subdomain label like www or mail.
  • Answer: the record value provided by the service you’re setting up (for example, the google-site-verification value from Google Search Console).
  • TTL: the record’s time to live in seconds. The minimum is 300.
  • Priority: shown only for record types that require it (MX and SRV).
Click Add record to save the new record. To change a record you added, open its three dots menu, select Edit, and click Save changes after editing. To remove one, select Delete and confirm. Records that Lovable manages show a lock icon and can’t be edited or deleted here. An SPF (Sender Policy Framework) record lists the services allowed to send email for a domain. Each Host can hold only one SPF record. When an email sender uses the root domain, such as yourdomain.com, Lovable keeps the SPF record on the @ host. This record has no lock icon, so you can add your own entries to it. To let an inbox provider such as Google Workspace or Zoho send email from the domain, add its entries to that record instead of adding a second SPF record:
  1. Open the SPF record’s three dots menu and select Edit your SPF entries.
  2. In Your SPF entries, enter the entries your provider gives you, for example include:_spf.google.com. Lovable keeps its own entries before and after yours.
  3. Click Save changes.
To remove your entries, clear the field and save. If you add a full SPF record for the domain with Add record, Lovable opens the SPF editor instead, with your existing and new entries filled in. Click Save changes to add the new entries. Lovable takes about 20 minutes to update the record. Until then, the row says that Lovable is updating the record. If you remove the email sender, Lovable deletes this record and your entries with it. See What happens if I delete an email domain?.
If you’ve switched the domain to custom nameservers, Lovable no longer manages its DNS. Add these records at your DNS provider instead.

Change nameservers for a domain bought through Lovable

By default, Lovable manages the DNS for domains bought through Lovable using Lovable’s nameservers. If you’d rather manage DNS elsewhere, you can point a domain to your own custom nameservers (for example, Cloudflare). You need to be a workspace admin or owner to change nameservers. Go to Workspace settings → Workspace domains, open the domain, and expand Advanced → Nameservers. Click Edit to open Edit nameservers.
  • Edit
    Enter at least two custom nameservers and click Save nameservers. If the domain has connected projects, Lovable asks you to confirm with Change anyway.
  • Reset to Lovable
    In the Edit nameservers dialog, click Reset to Lovable to restore Lovable’s nameservers.
When you switch to custom nameservers, Lovable stops managing the domain’s DNS. You become responsible for every DNS record at your provider, and any connected project and its email stay offline until you recreate those records there.
Custom nameservers stop Lovable from managing DNS. Connected sites and email break until you recreate the records.

Domain statuses

In Project → Settings → Domains, Lovable shows the connection status for each custom domain. These statuses apply to domains bought through Lovable and domains from other providers. Addresses under a workspace publishing domain use a separate card with Verifying and Live statuses. During setup, the progress line below the domain in the project Domains tab can show these stages:
  • Preparing: Lovable is preparing the connection.
  • Looking for your DNS records: Lovable is checking for the required records.
  • DNS records found, waiting for them to take effect: Lovable found the records and is waiting for other networks to see them.
  • Finishing up: Lovable is completing the connection checks and securing the connection with an SSL certificate.
If Lovable asks you to add records at your provider, select Set up DNS. To request another check, open the domain’s three dots menu and select Check again. When a connection needs attention but its DNS records look correct, Lovable shows a warning that it is checking the connection. Select Fix this in the warning to review the setup for a domain from another provider. For a Lovable-managed domain, workspace admins and owners can use the same action to open its workspace domain settings. For an active domain at another provider, Lovable can ask you to change the address your domain points to. The domain still works, but its DNS records need updating. If the notice shows Update, select it to try automatic setup. Otherwise, copy the records shown below the notice to your DNS provider. For registration, renewal, or registrant email problems, open the domain in Workspace domains and follow its alerts.

Manage project domains

Open Project → Settings → Domains and use the three dots menu next to a custom domain:
  • Set as primary or Unset as primary changes which address visitors use. See Primary domain.
  • Check again requests another connection check.
  • Setup instructions shows the records for a domain from another provider while it is setting up or needs attention.
  • Domain settings opens the workspace domain detail page for workspace admins and owners.
  • Disconnect removes the connection from this project after you confirm. Project editors and above can disconnect a domain. Lovable does not cancel the domain’s registration, and you can connect it again later.
For domains registered elsewhere, remove the corresponding DNS records at your provider if you no longer want the address to point to Lovable. For a grouped root domain and www, the menu includes a separate group of actions for the www address. While an address is Disconnecting, its primary-domain and disconnect actions are unavailable. Email sender rows show their purpose and status. See Email domain statuses and Managing email domains for the sender’s status labels and actions.

Manage workspace domains

Domains bought through Lovable belong to your workspace. Open Workspace domains (Workspace settings → Workspace domains) to search domains, buy a domain, or select Transfer in to transfer a domain to Lovable. The list also includes domains connected from other providers and domains used for email. A domain registered through Lovable shows its registration, renewal, or transfer status first, whatever its connections are doing. Otherwise it shows the first of these connection statuses that applies:
  • Disconnecting: Lovable is removing the domain’s connections.
  • Needs attention: At least one connection has a problem. Open the domain to review the warning.
  • Setting up: Lovable is still preparing at least one connection.
  • Waiting for DNS: Lovable is waiting for the domain to start using Lovable’s nameservers. To see the nameservers to set at your registrar, open the domain and expand Advanced → Nameservers.
  • Connected: The domain’s connections or Lovable-managed DNS are ready.
  • Email configured: The domain has email senders but no website connection.
Workspace admins and owners can select a domain row to open the detail page:
  • Lovable manages registration: For domains bought or transferred into Lovable, view Renews, Price, Auto-renew, and Registered. Change auto-renew here. From the card’s three dots menu, select Renew domain, Move domain, or Transfer out. For extensions that support it, select WHOIS privacy from the same menu. For domains registered elsewhere, the card identifies the registrar instead.
  • Projects: View the projects using the domain and expand a project to inspect its addresses and DNS records. Follow any DNS setup or update instructions shown for an address, or open the project to manage its connection.
  • Email: View email senders under the domain, their DNS records, and the projects that use them. Before selecting Remove sender from a sender’s three dots menu, review what removal affects.
  • Advanced: Expand DNS records or Nameservers. You can edit DNS records here for a domain registered through Lovable that uses Lovable’s nameservers. For external DNS, the records are read-only and you make changes at your provider.
  • Contact: Edit the registration contact information for a domain registered through Lovable, then click Save.
If DNS needs attention appears, review the affected addresses and select Check again after correcting the records. Registration and renewal alerts appear above the domain details. To move a domain bought through Lovable to another workspace, select Move domain in the registration card’s three dots menu. The destination workspace must be on a paid plan, and you must be an admin or owner there. Moving disconnects existing project connections in the source workspace. After the move, connect the domain to a project in the destination workspace. On the Enterprise plan, workspace admins and owners can connect one domain or subdomain for all projects from the Publishing domain section. See Publishing domain.

Primary domain

Lovable allows you to set one domain as the primary domain.
  • Click the three dots menu next to your domain and select Set as primary. You can select a domain while setup is in progress. Lovable uses it as the primary address when the connection is ready. You cannot select an address that is disconnecting.
  • The first custom domain you connect to a project automatically becomes the primary domain (for domains added after October 29, 2025), unless the project already has a primary address, such as an address under your workspace’s publishing domain.
  • A domain you buy and connect to a project becomes its primary domain, replacing the project’s current primary domain. This applies whether Lovable chose that primary automatically or you set it yourself with Set as primary. Only an address under your workspace’s publishing domain stays primary.
  • If a domain is primary, all other connected domains redirect to it. Lovable uses a 302 temporary redirect for page visits. A request that carries data, such as a form submission, gets a 307 temporary redirect instead, so the data survives the redirect.
  • Lovable hosting does not support 301 permanent redirects between connected project domains. Primary domains can be changed, so Lovable uses temporary redirects to keep domain changes reversible.
  • Only one domain can be primary at a time.
  • You can unset the primary domain. All connected domains then serve the project equally. Click the three dots menu next to your primary domain and click Unset as primary.

FAQ

These questions cover behavior that applies to every custom domain. For buying and registration, see Buy a domain through Lovable. For setting up and fixing a domain from another provider, see Connect a domain from another provider.
These terms come up when connecting a custom domain from another provider:
  • DNS determines where your domain points on the internet.
  • A domain’s nameservers are the servers that answer for it, and they decide which DNS provider’s records the internet uses. Your registrar sets them.
  • A DNS provider is the service where you manage DNS records for your domain, such as A, TXT, or AAAA records.
  • 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 or subdomain to an IPv6 address, a newer type of internet address. Keep an AAAA record when Lovable provides it. See the prerequisites for connecting a domain for how to identify conflicting records.
  • A CAA (Certificate Authority Authorization) record lists which certificate authorities may issue SSL certificates for your domain. If your domain uses CAA records, they must allow at least one of the certificate authorities Lovable uses.
  • An SSL certificate enables HTTPS and allows browsers to securely connect to your site.
Yes. When you connect a custom domain to your Lovable app, Lovable automatically generates and installs an SSL certificate for it. This ensures your site is served over HTTPS, keeping your visitors’ data secure and improving your site’s SEO ranking. If it hasn’t been issued after 72 hours, please reach out to Lovable Support.You do not need to install, upload, or reissue an SSL certificate from your domain registrar (for example, Namecheap or GoDaddy). Lovable issues and serves its own certificate for the connected domain, and any SSL certificate at your external registrar is not used by Lovable’s hosting.If your domain uses CAA records, they must allow Lovable to issue the certificate. See My domain has CAA records and SSL setup fails.
TLS (Transport Layer Security) is the technology that encrypts the connection between your visitors’ browsers and your site. TLS is what puts the padlock icon next to your URL. Older versions of TLS (1.0 and 1.1) have known security weaknesses, so modern browsers and security standards no longer consider them safe.All custom domains and lovable.app URLs use TLS 1.2 or newer, and Lovable rejects connections over TLS 1.0 and 1.1. Lovable enforces this automatically, with no setup needed, and the TLS 1.2 minimum satisfies common compliance requirements such as PCI DSS (Payment Card Industry Data Security Standard), the security standard for sites that handle card payments.You can’t change this setting yourself. If your compliance program requires a stricter minimum TLS version for your domain, contact Lovable Support.
Yes, you can buy and set up a domain at any time. However, your custom domain won’t serve any content until you publish your project.
Yes. A custom domain helps consolidate your brand, backlinks, canonical URLs, and search visibility under a domain you control.After your domain becomes Active:
  • Run an SEO review to check indexing, metadata, canonical URLs, sitemap status, performance, and other live-site SEO signals.
  • Verify the domain in Google Search Console.
  • Submit your sitemap through the Google Search Console connector or directly in Google Search Console.
  • If you changed your primary domain, rerun the SEO review so Lovable can re-check the new host.
Lovable supports both custom domains and subdomains, and lets you choose one primary domain so all other connected domains redirect to it automatically.
Lovable hosting does not support 301 permanent redirects between connected project domains.A primary domain is a reversible project setting. You can choose a different primary domain later, or unset the primary domain entirely. Because of this, Lovable uses temporary redirects instead of permanent redirects.
For domains bought through Lovable, Lovable sets up the root domain and www automatically. For domains from another provider, keep Redirect www.yourdomain.com → yourdomain.com enabled when connecting the root domain. The DNS setup window includes records for both addresses.Lovable groups the two addresses in one row. When both are active, it shows Active and www included. If www needs attention, its progress or warning appears separately below the root domain. If you disabled the redirect option, connect www.yourdomain.com separately when you want to use it.
Not the same exact domain, but you can connect different subdomains of the same domain to different projects (for example, yourdomain.com to project A, blog.yourdomain.com to project B).
Yes. The steps depend on how the domain is registered and where it is connected.
  • Same workspace, domain from another provider. Lovable blocks the connection while another project in the workspace still uses the domain. Disconnect it from that project first, then connect it here. The dialog can show Domain unavailable or an error explaining which connection to remove.
  • Same workspace, domain registered through Lovable. The dialog shows Move domain?. Select Move and connect to disconnect it from the other project and connect it here. You need permission to connect the workspace’s registered domains.
  • Different workspace, domain from another provider. Lovable does not take the domain over, and the dialog shows Domain already in use. Select Connect anyway to set up the connection in this project while the other project keeps serving the domain. The connection here can become active only after the other project stops serving the domain, so disconnect it there to make it live here. If you can’t access that workspace, contact Lovable Support. With the proxy option, Lovable does not allow the connection while the domain is live on the other project.
  • Different workspace, domain registered through Lovable. The dialog shows Domain already in use, and selecting Connect anyway fails with a message to move the domain to this workspace. Move it to this workspace first, or connect it to a project in the workspace where it is registered.
  • Held by an email sender. Lovable blocks the connection whichever workspace the sender is in, and the dialog shows Domain unavailable naming the sender. Remove that sender first, in your own email settings or by asking an admin or owner in the workspace that uses it. See What happens if I delete an email domain?.
You can see your connected domains in the following locations:
  • Project → Settings → Domains: all domains connected to a project
  • Publish dialog: your primary domain when it is Active, shown as the website URL. While Lovable is still setting up a domain you bought, or the first domain you connected for a project, the dialog shows that domain under the website URL with a note that it is still being set up. The note disappears if the setup has not progressed for 72 hours. Click Manage domains to see all of them in Project → Settings → Domains. The button label includes the number of addresses the project has, for example Manage 2 domains.
  • Workspace settings → Workspace domains: domains bought through Lovable, domains connected from other providers, and email domains. Open a domain for its projects, email senders, DNS records, and registration details. On the Enterprise plan, the list also includes the workspace’s publishing domain
  • The project chat: ask Lovable which domains are connected, what state each one is in, and which one is primary
Go to Project → Settings → Domains, open the three dots menu next to the domain, and select Set as primary. You can select a domain during setup. Lovable uses it as the primary address when the connection is ready. The action is unavailable while the address is disconnecting.
Go to Project → Settings → Domains, click the three dots menu next to your primary domain, and click Unset as primary.
You can disconnect a domain during setup or after it becomes active. While it is Disconnecting, wait for Lovable to finish.
  1. Go to Project → Settings → Domains.
  2. Click the three dots menu next to your domain, click Disconnect, then click Disconnect again to confirm.
This will disconnect the domain from the project.
  • For domains bought through Lovable, this only disconnects the domain from the project. It does not cancel your registration. The domain remains in your workspace and can be reconnected.
  • For domains registered with another provider, disconnecting removes the address from this project without canceling its registration. The root domain can still appear in Workspace domains if other projects or email senders use it. Remove the corresponding DNS records at your provider if you no longer want the address to point to Lovable.
Connected domains keep serving your published app. Downgrading or canceling does not disconnect your domains or unpublish your project.
  • Already-connected domains keep working, and you can still disconnect them on any plan.
  • Connecting a new domain requires a paid plan. After a downgrade to Free, you can’t buy domains or connect domains to projects, including domains already in your workspace, until you upgrade again.
  • Domains bought through Lovable are billed separately from your subscription, so a plan change does not affect their registration or renewal. Auto-renew keeps renewing and charging as usual, and the workspace owner can still manage the domain from Workspace settings → Workspace domains, including turning off auto-renew or transferring the domain out.
For the rest of your published app, see What happens to my published app if I downgrade or cancel my plan?
Currently, there is no way to remove the 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.
Add it as a DNS record in Lovable. Go to Workspace settings → Workspace domains, open the domain, and expand Advanced → DNS records to add the record. See Add or edit DNS records for a domain bought through Lovable.If you’ve switched the domain to custom nameservers, add the record at your DNS provider instead.
Your app’s auth redirect URLs don’t include the new domain yet. What to do depends on how your app handles sign-in:
  • Built-in backend: Lovable adds a custom domain to the redirect URLs automatically when the domain becomes Active. If sign-in still fails, ask Lovable in the project chat to add your domain to the auth redirect URLs, or add it under More → Users → Settings → Advanced.
  • Your own Supabase project: add the domain in that project’s auth settings. See Site URL and redirect URLs.
  • Google sign-in with your own Google OAuth credentials: also add the new domain’s redirect URL in Google Cloud Console and select it in Lovable. See Managing Google authentication.