Add nodejs runtime support for middleware (#75624)
This allows setting `runtime: 'nodejs'` in middleware, which removes the constraint of only using edge runtime APIs for middleware. This doesn't change the signature of middleware and it still receives `(req: NextRequest, event: NextFetchEvent) => Response`. x-ref: https://github.com/vercel/next.js/discussions/71727 x-ref: https://github.com/vercel/next.js/discussions/46722
Showing
Please
register
or
sign in
to comment