Moving a 10-year WordPress blog to Astro and Cloudflare Workers
The author moved a personal blog that had run on WordPress for more than 10 years to a static site built with Astro, a static site generator[1], and served by Cloudflare Workers. The immediate reason was a PHP vulnerability published in October 2026 that could allow a remote third party to run arbitrary code. The author had not maintained the blog for a long time, and the goals were to run no server-side programs, expose no admin panel, and reduce update work.
About 2,000 articles were converted from a WordPress WXR[2] export into HTML files, and all URLs were kept unchanged. The Worker handles only redirects of old URLs, images under /wp/*, and a management API under /api/*; all other requests return static files. The roughly 30,000 images are being moved from R2 gradually, with the existing storage used as a fallback, rather than all before launch.
The production switch was made by deleting the A record[3] and assigning the custom domain to the Worker, and the site was not displayed for about 40 seconds. Deferred loading of external scripts and Cloudflare image transformation raised the PageSpeed Insights mobile score from 66 to 100. Claude ran the git, DNS and wrangler[4] deploy steps, while a human had to approve the production deploy. The migration work itself took one day.
Sources
-
JPZenn JA
脱WordPress:10年超の個人ブログをAstro + Cloudflare Workersへ移行しPageSpeed 100点を実現







