How This Blog Is Set Up
Stack, publishing flow and security controls behind evilgenius.id/blog.
Short notes on how Racauan runs.
Stack
- Site: Astro, static build, output in
dist/blog. - CMS: Sveltia CMS bundled from a pinned package. Nothing loads from a CDN.
- Hosting: Cloudflare Worker
racauanon the routeevilgenius.id/blog*. The route takes precedence over the main site, so the main site keeps every other path. - Source: one repository,
evilgeniusid/blog. The blog lives inracauan/, the main site at the root.
Publishing flow
- Write in the CMS, or send a labelled draft to Claude with
/post. - The save becomes one Markdown file in
racauan/src/content/posts/and a commit tomain. - A GitHub Actions workflow builds and runs
wrangler deploy. Live in 1 to 2 minutes.
Four post types: note, link, quote, essay. URLs are /blog/<slug>/. A draft flag hides a post.
Security
- Page CSP allows same-origin scripts and images only. Remote images are downloaded into
/blog/uploads/. - CMS login uses a fine-grained GitHub token scoped to this one repository.
- CI uses SHA-pinned actions, a read-only token, and install scripts disabled.
- Deploy secrets: one Cloudflare API token (Workers Scripts and Routes edit) and the account id.
Cost
Static files on a Worker, free CI minutes, no database. Running cost is close to zero.