Custom Subpaths
Cloudflare
Host documentation at a /docs subpath using Cloudflare Workers
Prerequisite: Your primary domain (company.com) is hosted on and you are on the Mintlify Pro plan or above.
Quick Setup Guide
-
Create a new Cloudflare Worker at
Workers & Pages > Create application > Create worker
-
Configure custom domain:
- Go to
Settings > Triggers
- Click
Add Custom Domain
- Add your domain (with and without
www.
)
- Go to
-
Add the worker script:
- Click
Edit Code
- Copy the script below
- Replace
[SUBDOMAIN]
and[YOUR_DOMAIN]
with your values - Click
Deploy
- Click
Changes may take a few hours to propagate. For setup assistance, contact our support team.
Was this page helpful?