new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Next.js App Router · all subjects

getting-started/upgrading

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Upgrade Next.js version

Keep Next.js version up to date by running `pnpm next upgrade` (for pnpm). Equivalent commands exist for npm, yarn, and bun. Each release ships security patches, bug fixes, performance optimizations, and new features. Upgrading also updates documentation bundled in the `next` package at `node_modules/next/dist/docs/`, so AI coding agents in your project work from the installed version rather than training data.

Proxy replaces Middleware in Next.js 16

Starting with Next.js 16, Middleware has been renamed to Proxy to better reflect its purpose. The functionality remains the same.

Upgrade Next.js to latest version

Use the `next upgrade` command to update to the latest version of Next.js. This command is available in Next.js 16.1.0 and later. Run `pnpm next upgrade`, `npx next upgrade`, `yarn next upgrade`, or `bunx next upgrade` depending on your package manager.

Upgrade Next.js before version 16.1.0

Versions before Next.js 16.1.0 do not support the `upgrade` command. For these versions, use `npx @next/codemod@canary upgrade latest` instead.

Manual Next.js upgrade

To manually upgrade Next.js, install the latest versions of next, react, react-dom, and eslint-config-next using your package manager: `pnpm i next@latest react@latest react-dom@latest eslint-config-next@latest` (pnpm), `npm i next@latest react@latest react-dom@latest eslint-config-next@latest` (npm), `yarn add next@latest react@latest react-dom@latest eslint-config-next@latest` (yarn), or `bun add next@latest react@latest react-dom@latest eslint-config-next@latest` (bun).

Upgrade to canary version

To update to the latest canary version of Next.js, run `pnpm add next@canary`, `npm i next@canary`, `yarn add next@canary`, or `bun add next@canary` depending on your package manager. Ensure you are on the latest stable version first and that everything is working as expected.

Authentication features in canary

The following authentication features are available in the Next.js canary version: `forbidden` function, `unauthorized` function, `forbidden.js` file convention, `unauthorized.js` file convention, and `authInterrupts` config option.

Give your agent this brain