Runtime

site/admin/api now coexist inside one Bun process with shared config, database, auth, upload, and payment boundaries.

Parity baseline
  • Route families and HTTP methods
  • .env semantics and runtime directories
  • SQLite tables, indexes, and triggers
Current boundary
  • JSON/HTTP remains the production API contract
  • Preserve current Bearer auth semantics
  • WeChat Pay order creation, callbacks, query, and close flows run in Bun