d11_server.ts
raw
// c11 — server entry: env + Bun.serve startup. No route logic, no SQL,
// no HTML. The route table, fallback fetch, and error handler live in
// c21_app.ts; this file just reads PORT and asks createApp() to bind.
import { createApp } from "./d21_app.ts";
const port = Number(process.env.PORT ?? 3000);
const server = createApp(port);
console.log(`tdd.md → ${server.url}`);