Skip to content

Commit

Permalink
fix: Change url to nextUrl inside delete-query-params-in-middlewa…
Browse files Browse the repository at this point in the history
…res.md (vercel#33796)

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
2 people authored and natew committed Feb 16, 2022
1 parent 76cf929 commit 8d71ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors/deleting-query-params-in-middlewares.md
Expand Up @@ -28,7 +28,7 @@ import { NextResponse } from 'next/server'
export default function middleware(request: NextRequest) {
const nextUrl = request.nextUrl
nextUrl.pathname = '/dest'
return NextResponse.rewrite(url)
return NextResponse.rewrite(nextUrl)
}
```

Expand Down

0 comments on commit 8d71ce6

Please sign in to comment.