Log in Register
← Back

Deploying to Cloudflare

A step-by-step guide to deploying your Kide CMS site on Cloudflare Workers with D1 and R2.

Kide CMS supports Cloudflare Workers as a deployment target. This gives you edge rendering, a globally distributed database with D1, and asset storage with R2, all on Cloudflare's infrastructure.

Prerequisites

  • A Cloudflare account

  • Wrangler CLI installed

  • A Kide CMS project created with the Cloudflare template

Setting up resources

The setup script creates a wrangler.toml with D1 and R2 bindings. You need to create these resources on Cloudflare and add their IDs to the config.

Database migrations

Push your schema to the remote D1 database using the migration SQL file. This creates all the tables your collections need.

Deploy

Run pnpm run deploy and your site is live on the edge. The admin panel works the same way; it's all one worker.