Deploy docs to Cloudflare Pages
The docs site is built with VitePress. Cloudflare Pages hosts it for free, including from private repos.
One-time setup
Go to Cloudflare Dashboard
Click Pages in the sidebar (not Workers), then Create a project → Connect to Git
Authorize with GitHub and select the
anatomiq/mimicrepoUnder Set up builds and deployments, configure:
Setting Value Project name mimic-docs(or your choice)Production branch mainBuild command npm run docs:buildBuild output directory docs/.vitepress/distRoot directory (leave blank) Node.js version 22Click Save and Deploy
Cloudflare automatically deploys on every push to main. The first build may take ~2 minutes; subsequent builds are incremental and much faster.
Custom domain (optional)
In the Cloudflare Pages dashboard → your project → Custom domains, add a domain like docs.mimic.dev or point a subdomain.
Preview deployments
Every PR automatically gets a unique preview URL (e.g. abc123.mimic-docs.pages.dev). Cloudflare enables this by default for branch deployments.
Environment variables (not needed)
No secrets or environment variables are required — the site is fully static.