Overview
The previous Next.js app, retained as a parity oracle and rollback reference.
apps/web is the previous Next.js application. web
now owns all customer page routes, and api owns the replacement
API. The legacy source remains the reference used to verify both replacements.
bun run dev:statshub # http://localhost:3000Pages Router
ReactTypeScriptDrizzleschema and queriesPostgreSQLRadix UITailwind CSSStripeWhat the retained source does
Page parity reference
Its 73 production customer routes and the components they reach define the compatibility inventory. Normal App Router requests do not rewrite here.
218 API route files
Under src/pages/api, retained as the behavior oracle every ported Go
handler is measured against.
Why it is still here
It is the port's ledger
apps/api/docs/go-port.md maps each of those route files to its Go
equivalent. The file is generated and machine-read; it is how "how far along
is the port" has an answer.
It is the oracle
statshub-api-contract records golden responses from this app and
replays them against Go. That is what makes the port provably faithful
rather than merely finished — and it is why deleting this app is the last
step, not the first.