Why Astro and Cloudflare clicked for me

  • Astro
  • Cloudflare
  • Publishing

I did not start this site looking for the most impressive stack. I wanted a place that could hold projects, longer writing, and photographs without making every visit feel like somebody had opened an application in front of me. Most of the time, a reader should receive a page and read it. That is the whole job.

Astro clicked with that expectation almost immediately. It starts from documents and components rather than asking me to turn every page into a client-side application. A post can become a page at build time. The navigation, typography, images, and a small amount of interaction can arrive as a finished site instead of a pile of JavaScript waiting to become one.

That matters more to me on a site built around reading. I do not need a loading state between a title and its first paragraph. I do not need a dashboard-sized runtime to show an archive. I need a page that is calm, legible, and quick to put in front of someone.

Cloudflare made the other half of the arrangement feel proportionate. The public site can be built and delivered close to the reader, while the small pieces that genuinely need server-side work can still exist. Keystatic is one of those pieces: it needs an authenticated route to talk to GitHub. The reader does not need to carry that machinery around with every page view.

Content first, infrastructure second

This is a content-heavy site, but that does not mean it needs a large operational footprint. A page about a project, an essay in the archive, or a gallery overview is mostly settled by the time it is published. Prebuilding those pages is a natural fit. The content lives in the repository, the build turns it into public pages, and Cloudflare serves the result.

The publishing path is simple enough that I can explain it without a diagram:

  1. I edit a post, project, setting, or photograph in the browser.
  2. Keystatic saves the change as a commit on the publishing branch.
  3. When I am ready, a build turns that committed content into the public site.

That sequence is intentionally less immediate than a social feed. I like being able to make several edits, read them together, and publish one coherent version. A website is not worse because it pauses before it speaks.

The parts I do not romanticise

“Static” does not mean nothing can go wrong. A build can fail. An image can be too large. The GitHub connection still needs to be configured correctly. Keystatic still needs server-side functionality. A custom domain is not free just because the hosting tier is. And every convenience in this setup has a boundary somewhere in a dashboard, a build log, or a provider policy.

There is also a useful constraint in putting content in Git: publication is tied to a repository history. That is excellent for keeping changes visible and reversible. It is less excellent if I ever need a collaborative newsroom, a complicated editorial workflow, or a database that should answer arbitrary questions in real time. Those are not problems this site has today, so I would rather not borrow their complexity.

A good fit is not a universal answer

I do not think Astro and Cloudflare are objectively the answer to every personal website. They fit because this one is mostly writing and photographs, with a small publishing surface behind it. The site benefits from a fast public shell, not from pretending every page is a product.

That is the combination I keep coming back to: enough structure to publish deliberately, enough server capability where it is actually needed, and very little standing between a reader and the work.

Back to Archive