Deployment guide

What it takes to put pigletCMS on your own domain.

Before you start

You need a Cloudflare account, a domain on it, and Node 22 with pnpm.

  • An R2 bucket on your domain

  • A Cloudflare Access application in front of the editor

  • The pigletCMS Worker, which stores what the editor writes

Deploy

pnpm install
pnpm deploy:site

The deploy script needs an R2 API token scoped to the bucket. With the Worker in place, the editor in the browser does not.

The full walk-through, with every Cloudflare setting, is in the repository.

After the first deploy, everything else happens in the browser.