Files
d540fbd3e6 Deprecate Middleware API and add Proxy API (#84764)
Following up on https://github.com/vercel/next.js/pull/84119, this PR
deprecated the user-facing middleware API and added a replacement Proxy
API.

---------

Co-authored-by: JJ Kasper <[email protected]>
2025-10-14 20:09:14 +02:00

12 lines
316 B
JavaScript

/** @type {import('next').NextConfig} */
module.exports = {
// Explicitly configure deprecated options
skipMiddlewareUrlNormalize: true,
experimental: {
middlewarePrefetch: 'strict',
instrumentationHook: true,
middlewareClientMaxBodySize: '5mb',
externalMiddlewareRewritesResolve: true,
},
}