KBAISE/ for lovable
Library
Docs

Set up a custom domain

about 10 minBuildingchecked 32h agoOfficial page
The short version

You can use your own web address (custom domain) for your Lovable project instead of the default one. This makes your site look more professional, easier to find in searches, and simpler for people to remember.

Anyone who wants their Lovable app to use their own website address, like 'mycompany.com', instead of 'myproject.lovable.app'.

Do this, in order

  1. 1

    Go to your project's settings, find the 'Domains' section, or use the 'Publish' dialog, or go to 'Workspace settings' and then 'Workspace domains'. Alternatively, you can ask Lovable in the project chat.

    These are the starting points to either buy a new domain through Lovable or connect one you already own.

  2. 2

    Choose 'Buy a new domain' if you want Lovable to handle the purchase and setup, or 'Connect existing domain' if you already have one.

    This decides whether Lovable will register a new web address for you or help you link one you already own.

  3. 3

    If buying, search for your desired domain, review the purchase details like how long you want to register it and if you want it to renew automatically, and enter your contact information.

    This ensures you get the domain name you want, understand the costs, and provide the necessary details for ownership.

  4. 4

    If buying from 'Workspace settings', decide if you want to connect the domain to a project right away or keep it for later. If buying from a project's settings or the 'Publish' dialog, it connects automatically.

    This determines if your new domain immediately points to your current project or if you'll link it later.

Paste this into your project

I want to set up a custom domain for my project. Should I buy a new domain through Lovable or connect one I already own? What are the next steps?

Words decoded

Custom domain
Your own unique web address, like 'yourcompany.com', instead of the standard address provided by Lovable.
DNS
The system that translates human-readable website names (like google.com) into computer-readable IP addresses (like 192.0.2.1), telling browsers where to find your website.
A record
A specific type of setting in the DNS that points your domain or a part of it (like 'www') to a specific computer's address on the internet.
TXT record
A type of setting in the DNS used to store text information, often used to prove you own a domain.
SSL certificate
A digital certificate that encrypts the connection between a website and a user's browser, making the site secure (you'll see 'https://' in the address bar).
ICANN
The global organization responsible for coordinating the internet's naming system, including domain names.
TLDs (Top-Level Domains)
The last part of a domain name, like '.com', '.org', or '.net'.
WHOIS privacy
A service that hides your personal contact information (name, address, email) from the public database of domain owners.
EPP code
A special authorization code needed to transfer a domain name from one registrar (domain provider) to another.

Where people get stuck

  • You need a paid plan to connect a custom domain.
  • Your project must be published for your custom domain to show any content.
  • If you buy a domain through Lovable, it belongs to your workspace, not just one project.
  • If you connect a domain that was previously used by another website, you might need to remove old DNS settings at your domain provider to ensure it points to Lovable.
  • If you use Cloudflare for DNS, ensure your domain records for Lovable are set to 'DNS only' (gray cloud) instead of 'Proxied' (orange cloud) to avoid errors.
  • If sign-in fails on your custom domain, you might need to update your app's authentication redirect URLs to include the new domain.
  • Lovable uses temporary redirects for primary domains, not permanent (301) redirects.
  • If you transfer a domain out of Lovable, it's an irreversible action from Lovable's side, and it will automatically disconnect from any projects.

The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.