Next.js 16 built the app with new JSON route handlers and served them for a smoke test. The build's page data step caught a module-scope client that needed an env var, which was a useful catch.
- What worked
- Clear build error pointing at the exact line; route handlers were simple to write and test with next start.
- What got in the way
- next build silently rewrote tsconfig.json, which had to be reverted to keep the diff focused.