From 2a88a093734975318f790d313c76c0b1f936dbe3 Mon Sep 17 00:00:00 2001 From: Qiuran Hu <55808904+QiuranHu@users.noreply.github.com> Date: Wed, 19 Jun 2024 17:51:45 +0800 Subject: [PATCH] fix: fix typo (#67012) Co-authored-by: Sam Ko --- .../01-building-your-application/01-routing/14-middleware.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/02-app/01-building-your-application/01-routing/14-middleware.mdx b/docs/02-app/01-building-your-application/01-routing/14-middleware.mdx index e2388fec2d5db..12a5f8ddb756c 100644 --- a/docs/02-app/01-building-your-application/01-routing/14-middleware.mdx +++ b/docs/02-app/01-building-your-application/01-routing/14-middleware.mdx @@ -309,7 +309,7 @@ export function middleware(request: NextRequest) { const requestHeaders = new Headers(request.headers) requestHeaders.set('x-hello-from-middleware1', 'hello') - // You can also set request headers in NextResponse.rewrite + // You can also set request headers in NextResponse.next const response = NextResponse.next({ request: { // New request headers @@ -331,7 +331,7 @@ export function middleware(request) { const requestHeaders = new Headers(request.headers) requestHeaders.set('x-hello-from-middleware1', 'hello') - // You can also set request headers in NextResponse.rewrite + // You can also set request headers in NextResponse.next const response = NextResponse.next({ request: { // New request headers