> ## Documentation Index
> Fetch the complete documentation index at: https://www.magicpatterns.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Host on a custom domain

> Publish your design on a domain you own, like example.com.

You can publish your design on your own domain instead of a Magic Patterns link.

Don't have a domain? Use a [Magic Patterns link](https://www.magicpatterns.com/docs/documentation/publishing/publish-url.md) instead. It works straight away with no setup.

## Before you start

You need to own a domain. You can buy one from a domain provider, like GoDaddy, Namecheap, Cloudflare, or Squarespace.

Decide which kind of address you want:

* **Root domain:** your main address, like `example.com`.
* **Subdomain:** an address that starts with something extra, like `www.example.com` or `design.example.com`.

## Connect your domain

**1. Open Publish.**

Follow the first step on [Publish your site](https://www.magicpatterns.com/docs/documentation/publishing/publish-url.md) to open the Publish window.

**2. Choose Custom domain.**

**3. Choose Root domain or Subdomain, then type your domain.**

![The Publish window with Custom domain and Root domain selected](https://cdn.magicpatterns.com/uploads/itrqoNWQBf9yG6BWEFQeJF/CleanShot_2026-11-10_at_11.10.34_PM2x.png)

**4. Add the record to your domain provider.**

The Publish window shows a record to copy. Log in to your domain provider, find the DNS settings (often called "DNS Management" or "Advanced DNS"), and add the record.

**For a root domain**, add:

| Type | Name | Value |
| - | - | - |
| A | @ | 149.248.202.188 |

Delete any other A records for your domain first, or it won't work. Some providers, like Wix, use a blank space instead of @.

**For a subdomain**, add:

| Type | Name | Value |
| - | - | - |
| CNAME | www | magicpatterns.dev |

Replace `www` with your subdomain. For `design.example.com`, use `design`.

**5. Click Connect and publish.**

Your domain can take anywhere from a few minutes to 48 hours to start working. Most are ready within a few hours.

## Already published?

If your design is already live on a Magic Patterns link, open **Link settings** and click **Connect a domain** next to **Custom domain**. Then follow steps 3 to 5 above.

![Link settings with the Connect a domain option](https://cdn.magicpatterns.com/uploads/28ojyn5jQSsBaVtcbCP8GL/live.png)

## Check if your domain is ready

* **Root domain:** go to [whatsmydns.net](https://www.whatsmydns.net/?t=A), type your domain, and check it shows `149.248.202.188`.
* **Subdomain:** go to [whatsmydns.net](https://www.whatsmydns.net/?t=CNAME), type your subdomain, and check it shows `magicpatterns.dev`.

If you still see your old site, refresh the page, try a private window, or try a different browser. Your browser may be showing a saved copy.

## Common questions

> [accordion] My domain still isn't working after 24 hours.
>
> For a root domain, check you deleted all the old A records. This is the most common problem. Then check your domain on whatsmydns.net using the steps above. If it shows a different value or no record, the record wasn't added correctly.

> [accordion] My subdomain isn't working.
>
> Make sure you added a CNAME record, not an A record.

> [accordion] Which domain providers work with Magic Patterns?
>
> All of them, including GoDaddy, Namecheap, Cloudflare, Squarespace, and Wix.

> [accordion] Will my site be secure (HTTPS)?
>
> Yes. We set this up automatically for every custom domain.

> [accordion] How do I hide the Built with Magic Patterns badge?
>
> [Upgrade to a paid plan](https://www.magicpatterns.com/dashboard?dl=billing).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.