Overview
The previous Next.js app. Being replaced, excluded from dev, and not documented beyond this page.
apps/web-legacy is the Next.js app that web and
api are replacing. It still serves 218 route files under
src/pages/api, and it is still the reference the Go port is checked against.
bun run dev:web-legacy # http://localhost:3000What it still does
The routes not handed over yet
/league, /leagues, /previews and /basketball. Those four are listed
in LEGACY_ROUTES in web's next.config.js, which
rewrites them here — removing an entry there is what retires a route.
218 API route files
Under src/pages/api, still the only implementation of some of them, and
still the thing every ported Go handler is measured against.
Why it is still here
It is the port's ledger
apps/statshub-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.