In our previous article we explained why we move WordPress sites to Astro: pre-built pages, served from Cloudflare’s network, with nothing on the public site for anyone to attack. The obvious next question is always the same: “Fine, but how do I publish a new article?”
The answer is: exactly as before, in WordPress. This very article was written that way, on a headless WordPress setup. Here is how it works, and why it is faster, safer and cheaper than a classic WordPress blog.
WordPress for writing, not for serving
A “headless” CMS is a content system without a public website of its own. Headless WordPress keeps the part of WordPress people actually like, the editor, and drops the part that causes the trouble, the public website. Authors keep the familiar admin screens: drafts, revisions, scheduled posts, categories, the media library, several authors with different roles. What they write simply never gets served by WordPress itself.
The journey of an article
- The author writes in the WordPress editor and presses Publish.
- A small plugin of ours copies the article to a cloud database the moment it is published: title, text, images, categories, dates. Drafts never leave WordPress.
- Images go to Cloudflare R2, Cloudflare’s file storage, automatically converted to the modern WebP format in several sizes, so phones download small versions and large screens get sharp ones.
- The public site reads only from the cloud database, through Cloudflare Pages Functions, and renders the article inside the site’s own design.
- The visitor gets complete HTML, ready for Google to read, from a server close to them.
There is no rebuild and no waiting for a deployment: the article is live on the very next page request. Rendered pages are kept in Cloudflare’s cache, and that cache is refreshed automatically whenever something is published, edited or removed.
What this means in practice
- WordPress is invisible to visitors. It has no public website, so there is nothing for bots to scan, no login page to brute-force and no plugin vulnerability exposed to the internet.
- If WordPress goes down, the site does not. Visitors never talk to it. At worst, nobody can publish for a while.
- Speed stays the same no matter how many articles you have. The blog pages are as light as the rest of the Astro site.
- The preview shows the real thing. Pressing Preview in WordPress shows the draft inside the actual site design, with a clear note that it is not live yet.
- SEO housekeeping is automatic. Every article gets its sitemap entry, social sharing tags and structured data for Google. Rename an article and the old address redirects to the new one; delete it and search engines are told it is gone for good.

Your data, in your own accounts
For our clients we set up the cloud database and the Cloudflare account (hosting, file storage, domain) in the client’s own name. We get administrator access to run things; the client owns everything. That has three practical benefits:
- Running costs are usually zero. A typical business blog stays comfortably inside the free tiers. Even a very busy one, around 100,000 blog visits a day, needs Cloudflare’s $5 per month plan.
- The data stays with the business, which also makes GDPR questions simpler.
- There is no lock-in. If a client ever leaves us, their site, articles and images are already in their own accounts.
On our side, one WordPress installation serves all our clients’ blogs, each as a separate site with its own authors. One place to update and back up, and every new blog is a few minutes of set-up.
Who is this for?
It fits any business that publishes regularly and cares about speed and security: law firms, clinics, agencies, shops with a news section. It is a particularly good match if you want to keep the editor your team already knows, or if your current WordPress site needs constant plugin updates just to stay safe.
In the next article we move from publishing to finding clients: Lead Forge, the small AI agents we built to find and qualify B2B leads.
If you already have an Astro site, a blog can be added to it without touching the rest. If you are still on WordPress, the two moves can be combined. Tell us about your site and we will show you what it would look like.
Frequently asked questions
What is headless WordPress?
Headless WordPress is WordPress used only as the editor. Authors write and manage articles in the usual admin screens, but WordPress has no public website: articles are copied to a cloud database when they are published, and a separate fast site, here built with Astro on Cloudflare, shows them to visitors.
Do authors need to learn a new editor?
No. Authors keep the same WordPress editor, with drafts, revisions, scheduled posts, categories, the media library and several authors with different roles. The only difference is what happens after they press Publish: the article goes to the cloud and appears on the public site, while WordPress itself stays hidden.
How quickly does a published article appear on the site?
On the very next page request. There is no site rebuild and no deployment to wait for: the public site reads the article from the cloud database, and Cloudflare’s cache is refreshed automatically whenever something is published, edited or removed.
What happens if WordPress goes down?
The public site keeps working. Visitors never talk to WordPress, so an outage, an update or a maintenance window there only means nobody can publish for a while. Every article that is already published stays online, served from Cloudflare as before.
How much does a headless WordPress blog cost to run?
Usually nothing. A typical business blog stays comfortably inside the free tiers of the cloud database and Cloudflare. Even a very busy one, around 100,000 blog visits a day, needs only Cloudflare’s $5 per month plan, and every account is in the client’s own name.
- #Astro
- #Cloudflare
- #Cloudflare R2
- #Security
- #SEO
- #WordPress


