When to use Cloudflare Pages
Use Cloudflare Pages when you:- Already use Cloudflare for your DNS and want everything in one place.
- Need Cloudflare Access for authentication in front of your docs.
- Want Cloudflare’s DDoS protection and WAF on your docs site.
Setup overview
1
Build your Mintlify project
Run
mintlify build locally or in CI to generate a static build of your docs:2
Connect to Cloudflare Pages
In the Cloudflare dashboard, go to Pages → Create a project and connect your Git repository. Set the build command to
mintlify build and the output directory to .mintlify/build.3
Configure your domain
Add a custom domain in Pages → [Your project] → Custom domains. Cloudflare manages the DNS automatically if your domain’s nameservers point to Cloudflare.