Deploying to Cloudflare Pages

Learn how to deploy your documentation site to Cloudflare Pages with automatic previews.

Cloudflare Pages offers fast global CDN, automatic HTTPS, and seamless Git integration. Here's how to get your site live.

Build Configuration

Set your build command to bun run build or npm run build. The output directory is typically dist for VitePress.

Environment Variables

Add any API keys or site configuration as environment variables in the Cloudflare dashboard. Use SITE_NAME for local sites.

Preview Deployments

Every pull request gets a unique preview URL. Perfect for reviewing changes before merging.