AI summary by TwinMind

It's finally out!!! (Next.js 15 breakdown)

Theo - t3․gg

30m 5s

Release Overview & Timing

  • Next.js 15 dropped 4 days before Next Conf unexpectedly
  • Built on updates from RC1 and RC2, focused on stability
  • Includes code mod CLI (next@codemod) for automated migration
    • Handles breaking changes like async request APIs
    • Makes tedious migration tasks automatic

Async Request API Changes

  • Breaking change: cookies() now requires await
  • Previously synchronous due to request context access
  • Code mod helps automate these changes across codebase
  • Part of broader shift to async patterns

Caching Behavior Overhaul

  • Major change: fetch requests now uncached by default (was cached)
  • GET route handlers now uncached by default
  • Client route cache changed from cached to uncached by default
  • To enable caching: specify cache: 'force-cache' in fetch options
  • cache: 'no-store' for explicit no-caching
  • Route-level static option: all fetches happen at build time
  • fetchCache variable available per route (concerning due to component behavior variance)
  • GET API routes no longer cached by default (major UX improvement)
  • Page components no longer cached by default during navigation
    • Prevents stale state issues when navigating back
    • Can set staleTime if old behavior needed

React 19 Integration

  • Uses React 19 release candidate (not final due to suspense drama)
  • Backwards compatibility with React 18 for Pages router
  • Can run hybrid: Pages router on React 18, App router on React 19 (not recommended)
  • Alignment goal: Next and React releases synchronized going forward
  • React compiler now in beta (was experimental)
  • ESLint plugin highly recommended even without compiler
    • Encodes React's beliefs more strictly
    • Catches bugs and improves maintainability

Development Experience Improvements

Hydration Error Improvements

  • Better error messages with clear diffs
  • Shows server vs client HTML differences
  • Identifies common causes (date/time, Math.random)
  • Previously just showed "UUIDs didn't match"

Turbopack Dev Mode

  • Now stable and default for dev mode
  • Major performance improvements for startup and hot reload
  • Fast refresh: 2+ seconds → 1/10th second
  • Production builds still use webpack (Turbo pack build coming)
  • 96% test coverage for production builds
  • "Are we Turbo yet" website tracks progress

Static Route Indicator

  • Visual pill showing static/dynamic status in dev
  • Represents shift toward better developer tooling
  • Foundation for future integrated dev tools
  • Complements existing next build output

New Features

Unstable After API

  • Executes promises after request response completes
  • Different from waitUntil which runs concurrently
  • Use cases: analytics, logging, cleanup tasks
  • Prevents Lambda death before async work completes

Form Component

  • Enables pre-fetching of destination pages
  • Handles loading states and layouts before submission
  • Progressive enhancement support
  • Reduces boilerplate for form navigation patterns

Instrumentation.js

  • Standardizes error tracking and monitoring integration
  • Makes it easier for companies like Sentry to hook into Next.js
  • Replaces need for custom hacks around Next.js internals
  • Axiom expected to support soon

Configuration & Tooling

TypeScript Next Config

  • Native TypeScript support for next.config.ts
  • Better type safety and autocomplete
  • Important for upcoming config complexity
  • Replaces JSDoc workarounds

Self-Hosting Improvements

  • Collaboration with OpenNext team
  • Better CDN support and cache control
  • Sharp package included automatically in standalone mode
  • Configurable expire times and stale-while-revalidate
  • No more custom cache control overrides

Security Enhancements

Server Actions

  • Dead code elimination: unused actions not included in bundle
  • Non-guessable random IDs (was 1,2,3,4,5)
  • Encrypted form data with deployment-unique keys
  • Addresses closure variable leakage concerns
  • "use server" at file level only exposes imported functions

Performance Optimizations

Bundle Improvements

  • External package bundling for better server performance
  • serverExternalPackages config option
  • bundlePagesRouterDependencies for Pages router parity
  • Reduces cold start times on serverless

Static Generation

  • Reduced build times (was rendering twice, now once)
  • Shared fetch cache across pages
  • Advanced controls: worker count, retry logic, minimum thresholds
  • Configurable concurrency for large sites

Additional Updates

  • ESLint 9 support (ESLint 8 end of life October 5th)
  • Server Components HMR prevents expensive re-fetches
  • Moving away from deprecated Squoosh image optimization
  • React 19 compiler support and optimizations

TwinMind

Get summaries like this for your own meetings

TwinMind takes notes in the background during meetings, lectures, and calls, then writes the summary for you.

Free plan to get started

No bot joins your calls

Phone, desktop & Chrome apps

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome