Skip to main content
Prerequisite: Your primary domain (company.com) is hosted on and you are on the Mintlify Pro plan or above.

Setup Steps

  1. Create a new Cloudflare Worker at Workers & Pages > Create application > Create worker
Create a Cloudflare worker
  1. Add your custom domain by going to Settings > Triggers > Add Custom Domain
    • Add both domain.com and www.domain.com versions
Cloudflare worker custom domain
  1. Click Edit Code and paste the following script:
Cloudflare edit code
Replace [SUBDOMAIN] and [YOUR_DOMAIN] in DOCS_URL and CUSTOM_URL with your values
  1. Click Deploy (changes may take a few hours to propagate)
Need help? Contact our support team