My personal blog at perfectpan.org. It runs entirely on Cloudflare.
- TanStack Start on a Cloudflare Worker (SSR + server functions)
- Cloudflare D1 for posts and user data, R2 for media
- Better Auth for accounts and sessions
- Posts are written in the built-in
/admineditor and stored as markdown in D1, no CMS
The repo is a pnpm workspace: apps/web is the site, packages/shared holds
shared types. Design notes and internal docs live in
docs/architecture.md.
pnpm install
cp apps/web/.dev.vars.example apps/web/.dev.vars # fill in the values
pnpm --filter @blog/web db:migrate:local # local D1 schema + seed
pnpm dev # vite dev server
# or against the real worker runtime:
pnpm --filter @blog/web preview # wrangler devPushes to master build and deploy automatically through Cloudflare Workers
Builds, and PR branches get preview URLs. The RSS feed is at
/rss.xml.