> For the complete documentation index, see [llms.txt](https://help.wegic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.wegic.ai/features/custom-domain/connect-cloudflare-domain.md).

# Connect Cloudflare Domain

When your domain is using Cloudflare, you need to add DNS records in your DNS settings.Wegic will provide:

* A record value (IP address)
* CNAME record value (domain)

{% hint style="success" %}

## Quick Access

You can also refer to the official Cloudflare guide:

* [Create DNS records](https://developers.cloudflare.com/dns/manage-dns-records/how-to/create-dns-records/)
* [Edit DNS records](https://developers.cloudflare.com/dns/manage-dns-records/how-to/create-dns-records/#edit-dns-records)
* [Delete DNS records](https://developers.cloudflare.com/dns/manage-dns-records/how-to/create-dns-records/#delete-dns-records)
  {% endhint %}

## **Open DNS Settings**

1. Sign in to your Cloudflare
2. Go to the [**DNS Records**](https://dash.cloudflare.com/?to=/:account/:zone/dns/records) page.

## **Add A Record**

### **1. Add New Record**

* Click **Add record**
* You will see a form with fields:
  * **Type**\
    → Choose A or CNAME
  * **Name**\
    → Enter `@` or a prefix (e.g. `www`)
  * **Content**\
    → Enter the value provided by Wegic
  * **Proxy status**\
    → Select DNS only
  * **TTL**\
    → Keep Auto

### **2. Fill in A Record**

* **Type** → Select **A**
* **Name** → Enter `@`
* **Content** → Paste the IP address provided by Wegic
* **Proxy status** → Select **DNS only**
* **TTL** → Keep Auto

### **2. Save A Record**

* Click **Save**

## **Add CNAME Record**

### **1. Add Another Record**

* Click **Add record** again

### **2. Fill in CNAME Record**

* **Type** → Select **CNAME**
* **Name** → Enter prefix only (e.g. `www`)
* **Content** → Paste the CNAME provided by Wegic (e.g. `xxxxx.n2.wegic.app`)
* **Proxy status** → Select **DNS only**
* **TTL** → Keep Auto

### **3. Save CNAME Record**

* Click **Save**

## **Finish in Wegic**

1. Return to Wegic
2. Click **Update / Publish** (top-right corner) → This opens the publish settings modal
3. In the modal, click **Custom Domain → Connect**
4. Verification starts automatically
5. If successful, you will see a success message
6. Click **Publish** to apply your website to the domain

{% hint style="info" %}

## **Important (Cloudflare)**

* Make sure **Proxy status = DNS only**
* If set to Proxied (orange cloud), the domain may not verify
  {% endhint %}
