← ClaudeAtlas

dhpk-nextjs-15-5-noteslisted

Next.js 15.5 (current stable; the 15.x line ends at v15.5.19) signature features and traps. Use when writing or reviewing Next.js 15.5 code or a package constrained to ^15.5. Covers typegen, typed routes, beta Turbopack production builds, and the next lint deprecation. Not for application business logic; pair with `dhpk-react-18-notes` or `dhpk-react-19-notes` for React guidance and `dhpk-nextjs-16-notes` for the upgrade target. Output: version-specific guidance, migration traps, and verification gates.
hmj1026/dhpk · ★ 2 · Web & Frontend · score 71
Install: claude install-skill hmj1026/dhpk
# Next.js 15.5 — current stable Current stable release of the 15.x line. **The 15.x line ends at v15.5.19** — 15.6 never shipped stable (canary-only) before the jump to 16.0, so there is **no `nextjs-15.6` module**. > Read `docs/agent-guidance/frontend-framework-routing.md` for family > selection and compatibility. This module owns Next.js 15.5 APIs and > migration traps after routing. --- ## Signature features ### `next typegen` Introduced in 15.5.0. Generates TypeScript definitions for routes and route params, writing to `<distDir>/types`, without running a full `next build`: ```bash next typegen ``` ### Stable typed routes `typedRoutes` is promoted out of `experimental` — it is now a top-level `next.config` key (requires TypeScript in the project): ```js /** @type {import('next').NextConfig} */ const nextConfig = { typedRoutes: true } module.exports = nextConfig ``` ### Beta Turbopack production builds ```bash next build --turbopack ``` Turbopack production-build support was experimental in 15.3.0 and became **beta** in 15.5.0. Turbopack for `next dev` has been **stable since 15.0.0**. In 15.5, Turbopack is **not yet the default** for builds — you opt in with the flag; its absence still means webpack. ### AMP support deprecated AMP support is deprecated in the 15.x line. --- ## Migration traps ### `next lint` deprecated `next lint` is deprecated in 15.5 (scheduled for removal in 16 — cross-reference `dhpk-nextjs-16-notes`). Migration path off it is the E