· 1 min read
Rebuilding this site as static files
This site used to run a FastAPI app in front of a Directus CMS on a VPS. Every page load authenticated against the CMS, fetched rows, and proxied images through my own server — all to render content that changes a few times a month.
So I deleted it. Content now lives in YAML and markdown files in the repo, a Python script renders the Jinja templates once at build time, and Cloudflare serves the output from the edge. Publishing a post is adding a file and pushing.
The interesting part wasn't the static-site conversion, it was noticing how much machinery I'd built for a problem I didn't have. That instinct — reaching for infrastructure before checking whether the requirement is real — is the same one worth catching in production systems, where it costs a lot more than a container.
More on what I'm building: AcruxCore, an LLMOps control plane, and Autovidify, an AI subtitling platform I built solo and open-sourced.
Written by Talha Anwar, senior ai / full-stack engineer. me@talhaanwar.com