← Back to blog

How This Site Is Built

Brandon Schaefer··Updated November 24, 2026·2 min read

A static site with a headless CMS backend, an auto-rebuild pipeline, and no hosting fees beyond a single VPS.

Table of contents

Most personal sites are either fully static with no CMS, or they run a database-backed monolith like WordPress. This site takes a middle path: a headless CMS for content management and a fully static frontend that gets rebuilt automatically whenever something is published.


Strapi CMScontent & media editsGiteaAnsible Configuremanual CI trigger(does not rebuild frontend)StagingStrapi + Next.js preview buildmanual rebuild + verify before shippinginternal only, never reachable publiclyverified, ready to shipPublish to Productionmanual CI trigger · isolated builddesign-quality gate + leaked-hostname scanrefuses to ship if either one finds a problemrsync --delete, deploy keybschaefer.netexternal VPS · Nginx serving the static exportno Node.js process in productionCloudflarepublic domain DNS, proxied(+ DNS-only record for CI)Let’s EncryptTLS cert, auto-renewedVisitor’s browserrequests bschaefer.net via Cloudflare

The full path from a content edit or code push to a live visitor request.


The Stack

The backend is Strapi v5, an open-source headless CMS running on a self-hosted VPS managed by PM2. All content — blog posts, projects, resume data — lives in Strapi and is exposed via a REST API. The frontend is Next.js 15 with output: 'export', which means the entire site is pre-rendered to plain HTML, CSS, and JavaScript at build time. There is no Node.js server running in production. Nginx serves the static files directly.


The Deploy Pipeline

An earlier version of this pipeline used a webhook that rebuilt the frontend and shipped it to production automatically within seconds of hitting Publish in Strapi. That's been retired in favor of an explicit, multi-stage process — a little less instant, but it removes a real failure mode: a build that accidentally pointed at internal-only settings could previously reach production with nobody reviewing it first.

  1. A manually-triggered CI workflow refreshes the backend and the staging environment with the latest code, then the frontend is rebuilt and checked on a staging subdomain.
  2. A second, separately-triggered workflow does an isolated production build, then runs it through two automated gates before anything ships: a design-quality check against the frontend source (if it finds a real problem, the publish is refused and a tracking issue gets filed automatically), and a scan of the built output for anything that would leak an internal-only hostname.
  3. Only once both gates pass does the build get mirrored to the public VPS, replacing anything the previous build produced that the new one didn't.

Nothing reaches the public site automatically — every release is a deliberate, hands-on action, trading a few minutes of waiting for the guarantee that a sloppy build or an internal URL can't quietly end up in front of real visitors.


Why Static Export

A static site has no attack surface beyond what Nginx exposes, scales trivially, and survives traffic spikes without breaking a sweat. The tradeoff is that content changes require a rebuild — acceptable for a personal site where real-time updates aren't needed.


DNS

DNS for the public domain is hosted on Cloudflare, and the apex record is proxied — real visitor traffic goes through Cloudflare's edge rather than straight to the VPS, which puts an edge cache in front of the origin. That proxy only ever forwards HTTP(S) traffic, though, so the deploy pipeline can't use that same hostname for its SSH-based publish step — it would just time out. A second, non-proxied record pointed at the same server exists solely to give deploys a direct path in.

Source

The full source is on Gitea hosted internally.