docs: update Middleware API reference (#30485)
I changed the order of `NextRequest` and `NextFetchEvent` as they are presented in the function signature. There also seemed to be some issues with the heading levels. Also, `NextResponse` is a documented API, but the example code uses `Response`. I wasn't sure if this was a mistake in the docs or in the code. I noticed that other similar docs pages have a collapsible `Examples` section at their top: - https://nextjs.org/docs/api-reference/next/image - https://nextjs.org/docs/api-reference/next/head - https://nextjs.org/docs/api-reference/next/amp Image below:  Should the Middleware docs have the same?
Showing
Please
register
or
sign in
to comment