Astro vs WordPress: Why I Moved This Blog (and What I Gave Up)

Verdict: ASTRO, FOR ME
Laptop showing code in an editor, with the title: Astro vs WordPress: why I moved this blog
Photo: Arnold Francisca on Unsplash

Short answer: I moved this blog from WordPress to Astro, a static site generator, hosted on Cloudflare. Every page is now built ahead of time, there are no plugins to babysit, and a typical post is about 22 KB of HTML plus one 13 KB stylesheet. What I gave up: the comfy visual editor, one-click everything, and the ability to fix a typo from my phone in 30 seconds.

I’m a programmer at heart, so this was always going to tempt me. But I didn’t want to write a “WordPress bad, static good” post, because that’s not true. WordPress is a great tool. It just stopped being the right tool for this blog.

What this blog actually needs

Before picking a stack, I wrote down what Stella Daptor really does. It’s a lot less than a typical WordPress install is built for:

  • One author (me), writing long posts with tables, images and the odd FAQ.
  • No shop, no memberships, no logins for readers.
  • Pages that change rarely once they’re published, apart from updates and corrections.
  • A handful of affiliate links and discount codes that must never break.
  • Readers who mostly arrive from search, read one post and leave, so speed matters.

When I looked at that list, the answer was obvious. Nothing here needs a database query on every page view. A blog post is a document. It can be built once and served as a plain file.

WordPress vs Astro at a glance

WordPress Astro (static)
How pages are made Built by PHP and a database on each request (unless cached) Built once, at build time, into plain HTML files
Writing posts Visual block editor in the browser Markdown files in a code editor
Extending it Plugins Your own code and npm packages
Hosting PHP + MySQL server Any static host or CDN
Maintenance Core, theme and plugin updates Dependency updates when you choose
Attack surface Login page, plugins, XML-RPC, database Static files, no login, no database
Best for Teams, non-coders, shops, memberships Technical solo writers, docs, portfolios

Why I chose Astro

There are plenty of static site generators. I picked Astro for a few boring, practical reasons.

It ships HTML, not a JavaScript app. By default Astro sends no JavaScript to the browser at all. You opt in where you need it. On this blog the only script on a post page is a tiny one that powers the “copy code” buttons on discount codes.

Content collections. Every post is a Markdown file with frontmatter (title, description, dates, category and so on), and Astro checks that frontmatter against a schema at build time. If I forget a description or type a date wrong, the build fails instead of quietly publishing a broken page. As a programmer, I find that deeply calming.

It still feels like a website, not a framework. Layouts and components are mostly HTML with a bit of logic at the top. I can read a page template and know what comes out.

How the migration went

Here’s the actual process, in the order I did it. If you’re thinking of doing the same, this is the part to steal.

1. Export every post through the WordPress REST API

WordPress has a built-in REST API, so I didn’t need a plugin. I wrote a small Node script that pulled all 128 posts (title, content, dates, category, featured image and SEO description) and converted the HTML into Markdown. Expect to clean up afterwards: page-builder blocks, shortcodes and embedded widgets don’t always convert neatly.

2. Keep every URL exactly the same

This is the most important rule of any migration. My posts lived at stelladaptor.com/post-slug/, so the new site builds them at exactly the same addresses, with the same trailing slash. Category pages kept their paths too. For the things that no longer exist, like WordPress feeds, author archives and the old sitemap files, I added redirects to the closest new equivalent.

3. Carry over the SEO basics

Titles, meta descriptions, canonical URLs, Open Graph tags and structured data all came across. I generate the sitemap at build time and keep tag pages out of it. Then I went through the content itself, which honestly took far longer than the code. Moving was a good excuse to re-check old posts, fix outdated specs and give thin posts the depth they deserved.

4. Images: same paths, lighter files

Old image URLs keep working because I kept the original wp-content/uploads folder structure. On top of that, a build step makes WebP versions at three widths (480, 768 and 1,200 pixels), and the pages serve them with a fallback to the original. Phones download the small one, laptops the bigger one, and nothing breaks for old links that point to the original file.

5. Search without a server

WordPress search runs a database query. A static site has no database, so I use Pagefind. After Astro builds the site, Pagefind reads the finished HTML and creates a search index split into small chunks. When you search, your browser fetches only the chunks it needs. No server, no monthly fee, and it’s fast.

6. Hosting on Cloudflare

The built site is a folder of HTML, CSS, fonts and images. I deploy it to Cloudflare with one command, which builds the site, uploads it and serves it from Cloudflare’s network. If you’re still on WordPress, my guide to getting the most out of the free Cloudflare plan for WordPress covers the caching and security setup I used before the move.

7. Tell search engines what changed

After each deploy, a script submits the changed URLs through IndexNow, which Bing and several other search engines support. Google doesn’t use IndexNow, so for Google the sitemap does the job.

What got better

  • Speed. A post is pre-built HTML served from a CDN. There’s no PHP to run and no database to ask. A typical post page here weighs about 22 KB of HTML, plus a 13 KB stylesheet and self-hosted fonts that the browser caches after the first visit.
  • Nothing to patch on a Tuesday night. No plugin updates, no “your PHP version is outdated” emails, no theme conflicts. I update dependencies when I decide to, test locally, and deploy.
  • A much smaller attack surface. There’s no login page to brute-force and no database to inject into. Visitors only ever get static files.
  • Everything is in files. Every post is a text file I can search, diff and back up. If I mess something up, I can see exactly what changed.
  • Hosting costs. A static site this size fits comfortably within what Cloudflare offers for static assets. Check their current pricing page, because limits change, but static files are about the cheapest thing on the internet to serve.

What I gave up (being honest)

This is the part most migration posts skip.

  • The editor. WordPress’s block editor is genuinely nice. Now I write Markdown in a code editor and preview locally. I like it, but plenty of people wouldn’t.
  • Quick fixes from anywhere. On WordPress I could log in from my phone and fix a typo. Now a fix means editing a file, building and deploying. It takes a couple of minutes, not seconds.
  • Plugins for everything. Want a contact form, comments or a newsletter popup? On WordPress that’s a plugin. On a static site, you either build it, use a third-party service, or decide you don’t need it. I currently don’t run comments. Readers can email me instead.
  • Scheduling. WordPress schedules posts out of the box. With a static site you need a rebuild at the right time, which means extra setup.
  • Some old bits still live on the old server. My short affiliate links and my email are still handled by the old hosting for now. Migrating those cleanly is its own project, and I’d rather do it carefully than fast.

Should you move your blog from WordPress to Astro?

Move if:

  • you’re comfortable with Git, the command line and Markdown;
  • you write alone, or with a small technical group;
  • your site is mostly articles and doesn’t need logins, a shop or live comments;
  • you’re tired of plugin updates and want something you fully understand.

Stay on WordPress if:

  • non-technical people need to write and edit content;
  • you rely on plugins for e-commerce, memberships, forms or bookings;
  • you want to fix things from your phone;
  • you’d rather pay a host than maintain a build setup.

There’s also a middle ground: keep WordPress, but use it properly. Good caching, Cloudflare in front, fewer plugins and regular updates get you a fast, safe WordPress site.

My verdict

For this blog, Astro was the right call. I spend less time maintaining the site and more time writing. The site is lighter, and every page is a file I understand top to bottom. If you’re a tinkerer like me, a static blog is also just fun: the whole site is a small codebase you can bend any way you like.

But the honest verdict is “it depends on who’s writing”. The best blogging platform is the one that gets out of the way of your writing. For me, that’s a folder of Markdown files. For a team of editors, it’s probably still WordPress.

FAQ

Is Astro better than WordPress for a blog?

For a blog written by one technical person, often yes: pages are pre-built, light and cheap to host, and there are no plugins to update. For a team that needs a visual editor, user roles, comments or e-commerce, WordPress is usually the better fit.

Will moving from WordPress to Astro hurt my SEO?

It doesn’t have to. The big risks are changed URLs, lost redirects, missing titles and descriptions, and broken images. Keep every post URL identical, redirect old feeds and archives, carry over your meta data and submit the new sitemap.

Do I need to know how to code to use Astro?

You need to be comfortable with a code editor, the command line and Markdown. Writing posts is just Markdown, but setup, layouts and fixes mean editing code. If that sounds unpleasant, a hosted WordPress or a no-code site builder will make you happier.

How do you add search to a static Astro site?

I use Pagefind. It builds a search index from the finished HTML at build time and loads only the small pieces of the index it needs in the browser, so there’s no search server or database.

Is hosting an Astro site on Cloudflare free?

For a site like this one, it can be. Cloudflare serves static assets from Workers without charging for asset requests, within its plan limits. Check Cloudflare’s current pricing page, because limits and terms can change.

More from my guides notes ↓

  1. Guides

    Proxy Workflow Explained: Edit 4K Footage on a Laptop Without Stutter

    If your timeline stutters, make proxies before you buy a new laptop.

    Verdict: USE PROXIES
  2. Guides

    Is Insta360 FlexiCare Worth It?

    Is Insta360 FlexiCare worth it? How the replacement plan works, what it costs per claim, and who should buy it instead of skipping it.

  3. Guides

    TON Wallet or Crypto Wallet? The Key Differences Explained

    TON Wallet vs Crypto Wallet in Telegram explained: custodial vs self-custody, what the apps are called now, Tonkeeper, seed phrase safety and common scams.