Next.js 16, the 16 way

Build any part of an app with the whole Next.js App Router, the 16 way, and don't regress to older patterns.

Any developer who works on any part of a Next.js app: frontend, backend, database, deploy, CI/CD, security.

You know React and basic web development; no Next.js needed. Taught on Next.js 16.4.5.

17 of 66 films published

Everyone, in this order

Core

  1. 1Watch · 5:53

    Pages, layouts and links

    Create pages and a shared layout, link between them, and read a dynamic route's params.

    Replaces reading params synchronously; getStaticPaths

  2. 2Watch · 5:05

    Stream it

    Fetch fresh data in an async Server Component and stream it with <Suspense>.

    Replaces fetching in useEffect, or from your own Route Handler

  3. 3Watch · 5:41

    Or cache it

    Cache a slow read with 'use cache' and cacheLife.

    Replaces unstable_cache, export const revalidate

  4. 4Watch · 6:28

    One button on a server page

    Put 'use client' on the smallest interactive piece.

  5. 5Watch · 6:43

    Save a form

    Save a form with a Server Function.

    Replaces an API route plus a fetch POST for a form

  6. 6Watch · 5:52

    After a save

    Show the save immediately with updateTag.

    Replaces revalidateTag with no profile

  7. 7Watch · 6:16

    A quick check at the door

    Redirect signed-out visitors in proxy.ts (an optimistic check only).

    Replaces middleware.ts

  8. 8Watch · 6:46

    Data for someone else

    Serve data to a Client Component or outside caller from a Route Handler.

    Replaces export const dynamic = 'force-static'

Then pick your path

Each path assumes the core and stands on its own.

Role path

Frontend: UI and navigation

  1. 1Watch · 5:34

    Form feedback

    Show pending and validation errors on a form with useActionState.

    Replaces useFormState from react-dom

  2. 2Watch · 5:18

    Before the server answers

    Show a change before the server confirms it with useOptimistic.

  3. 3Watch · 6:37

    When it fails

    Handle failure with error.tsx (retry) and not-found.tsx.

    Replaces reset() for Server Component errors

  4. 4Watch · 5:34

    Fast links

    Make links fast with prefetching and Partial Prefetching.

    Replaces prefetch={true} on every Link

  5. 5Watch · 5:15

    Instant navigation

    Structure a route so navigating to it renders instantly.

  6. 6Coming soon

    A useful static shell

    Keep layouts, navigation and loading states in the static shell while request-time content streams.

  7. 7Coming soon

    Redirects

    Choose the right redirect: in a Server Function, a page, the config or proxy.ts.

  8. 8Coming soon

    Keep state across pages

    Control which UI state survives a navigation with React's Activity.

  9. 9Coming soon

    View transitions

    Animate navigations and content changes with view transitions.

  10. 10Coming soon

    No flash before hydration

    Correct server-rendered content before the browser paints.

  11. 11Coming soon

    Load it later

    Lazy load a heavy Client Component or library.

  12. 12Coming soon

    When the browser fetches

    Fetch in the browser with SWR or TanStack Query when the data really is client-side.

  13. 13Coming soon

    When the network drops

    Recover when the network drops mid-fetch or mid-Server Action, and tell the user.

  14. 14Coming soon

    A single-page app

    Build a single-page app with Next.js.

  15. 15Coming soon

    An installable app

    Make the app a Progressive Web App.

Role path

Look and content

  1. 1Watch · 5:56

    Styling

    Style the app with CSS Modules, global CSS and Tailwind.

    Replaces a tailwind.config.js with @tailwind lines

  2. 2Coming soon

    CSS-in-JS

    Use a CSS-in-JS library across the server and client boundary.

  3. 3Watch · 6:46

    Images

    Serve optimized images with next/image.

    Replaces a priority prop on the hero image

  4. 4Coming soon

    Fonts

    Load fonts with next/font, with no layout shift.

  5. 5Coming soon

    Video

    Embed and optimize video.

  6. 6Coming soon

    Metadata and OG images

    Set page metadata, generate OG images and add JSON-LD.

  7. 7Coming soon

    Scripts and analytics

    Load third-party scripts and analytics without slowing the page.

  8. 8Coming soon

    Markdown and MDX

    Write pages in Markdown and MDX.

  9. 9Coming soon

    Many languages

    Serve localized routes and content.

Role path

Backend and data

  1. 1Watch · 6:21

    One door to the data

    Put all data access in one server-only data access layer with verifySession.

    Replaces a session check in the shared layout

  2. 2Coming soon

    Cached for one person

    Cache per-user data with 'use cache: private'.

  3. 3Coming soon

    Live updates

    Push live updates over SSE from a Route Handler.

    Replaces Pages API route res.write

  4. 4Coming soon

    A webhook refresh

    Refresh the cache from a webhook with revalidateTag(tag, 'max') in a Route Handler.

    Replaces revalidateTag(tag) with no profile

  5. 5Coming soon

    Preview drafts

    Let editors preview unpublished CMS content with Draft Mode.

  6. 6Coming soon

    Code at startup

    Run code when the server starts with instrumentation.ts.

  7. 7Coming soon

    Prerender the popular pages

    Prerender some dynamic routes and fill in the rest after the first visit.

    Replaces ISR with export const revalidate

Role path

Deploy and operations

  1. 1Watch · 5:54

    Read the build

    Read the next build output: what's prerendered, what streams, and why.

  2. 2Coming soon

    One image, every environment

    Use environment variables so one image serves every environment.

  3. 3Coming soon

    Two servers, one cache

    Self-host several instances with a shared cache handler (updateTags / refreshTags).

  4. 4Coming soon

    Self-host with Docker

    Self-host on Node.js or Docker, and know what each platform must support.

  5. 5Coming soon

    A static export

    Export the app as static files, and know what that gives up.

  6. 6Coming soon

    Behind a CDN

    Put the app behind a CDN and know what it caches.

  7. 7Coming soon

    Traces

    Trace requests with OpenTelemetry.

  8. 8Coming soon

    Ready for production

    Run the production checklist and shrink the bundles.

  9. 9Coming soon

    Memory

    Find and reduce memory use in development and production.

  10. 10Coming soon

    Several apps, one domain

    Serve several Next.js apps under one domain with Multi-Zones.

  11. 11Coming soon

    A custom server

    Start Next.js from your own Node.js server, and know the cost.

Role path

Security

  1. 1Coming soon

    Every action is a public door

    Authenticate and authorize inside every Server Action.

  2. 2Coming soon

    The real check

    Do the real permission check in the data access layer and return only needed fields.

  3. 3Coming soon

    Secrets stay on the server

    Keep secrets out of the browser with server-only and server-only environment variables.

  4. 4Coming soon

    Sign-in and sessions

    Sign users in and manage sessions.

  5. 5Coming soon

    A Content Security Policy

    Set a Content Security Policy, with nonces where needed.

Role path

Tooling and upgrades

  1. 1Coming soon

    A fast dev loop and the debugger

    Speed up local development and debug server and client code.

  2. 2Coming soon

    Tests

    Test the app with Playwright, Vitest, Jest or Cypress.

  3. 3Coming soon

    CI that reuses the build cache

    Configure CI to reuse the Next.js build cache.

  4. 4Coming soon

    Coding agents and the MCP server

    Give a coding agent current Next.js guidance and access to the running app.

  5. 5Coming soon

    Upgrade to 16

    Upgrade an app to Next.js 16 with the codemods.

  6. 6Coming soon

    Turn on Cache Components

    Turn on Cache Components in an existing app, one route at a time.

    Replaces route segment config: dynamic, revalidate, fetchCache

  7. 7Coming soon

    From the Pages Router

    Move a Pages Router app to the App Router.

    Replaces getServerSideProps, getStaticProps, pages/api

  8. 8Coming soon

    From Create React App or Vite

    Move a Create React App or Vite app to Next.js.

Capstone

Capstones

  1. 1Coming soon

    Realtime chat

    Add a small feature to the realtime chat, checked by its e2e test.

  2. 2Coming soon

    Auth without a provider

    Add a small feature to the auth boilerplate, checked by its 24 smoke checks.

  3. 3Coming soon

    Two apps, one shop

    Add a small feature across the shop and journal zones, checked by the demo's smoke check.