Skip to content
James Ross
Infrastructure · Web OpsLive

WordPress → Cloudflare Workers fleet

WordPress to Cloudflare Workers Migration

15 WordPress sites converted to static Astro and 3 new sites launched—18 live on Cloudflare Workers from one Astro monorepo and a self-hosted build VM.

stack: Astro · Cloudflare Workers · pnpm Monorepo · Markdown-in-Git · 301 Redirect Maps · Self-Hosted Build VM · Axe & Lighthouse QA

01 / Problem

The problem

Running 15 separate WordPress sites meant ongoing PHP security maintenance, database backups, and page-builder bloat across domains that really needed fast static delivery.

02 / Architecture

The build

  • Astro monorepo combining a shared core package and per-theme packages, deploying one Cloudflare Worker per site to serve static assets.
  • Parity tooling verifying legacy URLs, titles, and canonicals alongside explicit 301 redirect maps and Markdown-in-Git content.
  • Self-hosted build VM with a deploy timer and rollback tags instead of hosted CI.
  • Per-site release gates running a strict validator, visual QA at 3 widths in light and dark, axe accessibility checks, and Lighthouse.

03 / Diagram

System schematic

01 / SOURCE15 WordPress +3 New Sites~945 posts · ~60 pages02 / MONOREPOAstro MonorepoCore + 11 theme pkgsMarkdown-in-Git + 301sURL/title/canonical parity03 / BUILD & QASelf-HostedBuild VMDeploy timer + rollbacks3-width QA · axe · LH04 / EDGE18 LiveWorkersStatic assets
WordPress exports and new builds passing through the Astro monorepo, parity & QA gates, and the self-hosted build VM to 18 Cloudflare Workers.

04 / Scope

Status & scale

Sites live

18 (15 WP + 3 new)

Content migrated

~945 posts, ~60 pages

Themes

11 monorepo themes

CI / deploy

Self-hosted build VM

05 / Stack

Components

  • Astro
  • Cloudflare Workers
  • pnpm Monorepo
  • Markdown-in-Git
  • 301 Redirect Maps
  • Self-Hosted Build VM
  • Axe & Lighthouse QA

06 / Writing