Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Jan 16, 2025
1 parent d78030d commit eedd8e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/lib/buildLegacyCtx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const buildLegacyCtx = (
query: { ...searchParams, ...params },
// decoding is required to be backward compatible with Pages Router
// because Next.js App Router does not auto-decode query params while Pages Router does
// e.g., params: { name: "John%20Doe" } => params: { name: "John Doe" }
params: decodeParams(params),
req: { headers: buildLegacyHeaders(headers), cookies: buildLegacyCookies(cookies) },
res: new Proxy(Object.create(null), {
Expand Down

0 comments on commit eedd8e4

Please sign in to comment.