Buckets:
| title: middleware.js | |
| description: API reference for the middleware.js file (deprecated, renamed to proxy.js). | |
| version: draft | |
| related: | |
| title: Learn more about Proxy | |
| links: | |
| - app/api-reference/file-conventions/proxy | |
| The `middleware.js` file convention has been **deprecated** in Next.js 16 and renamed to [`proxy.js`](/docs/app/api-reference/file-conventions/proxy). | |
| All functionality remains the same — only the file and export names have changed. See the [Migration to Proxy](/docs/app/api-reference/file-conventions/proxy#migration-to-proxy) section for details on how to migrate. | |
| You can automatically migrate by running: | |
| ```bash | |
| npx @next/codemod@canary middleware-to-proxy . | |
| ``` | |
| For full documentation, see the [`proxy.js` API reference](/docs/app/api-reference/file-conventions/proxy). | |
Xet Storage Details
- Size:
- 814 Bytes
- Xet hash:
- 52816ea15767fb0ac8a7108afe1e9bbc4fa6fb58276dada799fa8e0c03517863
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.