Skip to content
nyx-cellPublic
forked from PerfectPan/blog

About

PerfectPan's Blog

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

PerfectPan's Blog

My personal blog at perfectpan.org. It runs entirely on Cloudflare.

Stack

  • 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 /admin editor 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.

Development

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 dev

Deploy

Pushes to master build and deploy automatically through Cloudflare Workers Builds, and PR branches get preview URLs. The RSS feed is at /rss.xml.

License

MIT

About

PerfectPan's Blog

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages