Unverified Commit 9e63d487 authored by Eric Rabinowitz's avatar Eric Rabinowitz Committed by GitHub

docs: Fix syntax in proxy example code (#89395)

Fixes syntax for the code sample found on
https://nextjs.org/docs/pages/guides/multi-zones#routing-requests-using-proxy

---------
Co-authored-by: 's avatarJoseph <joseph.chamochumbi@vercel.com>
parent 1ac8cb06
......@@ -104,9 +104,9 @@ Routing requests through [`rewrites`](/docs/app/api-reference/config/next-config
```js filename="proxy.js"
export async function proxy(request) {
const { pathname, search } = req.nextUrl;
const { pathname, search } = request.nextUrl
if (pathname === '/your-path' && myFeatureFlag.isEnabled()) {
return NextResponse.rewrite(`${rewriteDomain}${pathname}${search});
return NextResponse.rewrite(`${rewriteDomain}${pathname}${search}`)
}
}
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment