Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
INT-2198 chore: rename buildLegacyContext to buildLegacyCtx (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj authored Nov 28, 2023
1 parent 85f547b commit 816f73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codemods/next/13/remove-get-static-props/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getQuery = (url: string, params: Record<string, string | string[]>)
return { ...searchParamsObj, ...params };
};
export const buildLegacyContext = (headers: ReadonlyHeaders, cookies: ReadonlyRequestCookies, params: Record<string, string | string[]>) => {
export const buildLegacyCtx = (headers: ReadonlyHeaders, cookies: ReadonlyRequestCookies, params: Record<string, string | string[]>) => {
return {
query: getQuery(headers.get('x-url') ?? '', params),
params,
Expand Down

0 comments on commit 816f73e

Please sign in to comment.