Prerequisite: Your primary domain (company.com) is hosted on
and you are on the Mintlify Pro plan or above.
Setup Steps
- Create a new Cloudflare Worker at
Workers & Pages > Create application > Create worker

- Add your custom domain by going to
Settings > Triggers > Add Custom Domain- Add both
domain.comandwww.domain.comversions
- Add both

- Click
Edit Codeand paste the following script:

- Click
Deploy(changes may take a few hours to propagate)