Skip to content

Commit

Permalink
render app pages with original url
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed May 4, 2023
1 parent bf09c65 commit d855cfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async function runOperation(renderData: RenderData) {
cssModules: {},
}
const req: IncomingMessage = {
url: renderData.url,
url: renderData.originalUrl,
method: renderData.method,
headers: headersFromEntries(renderData.rawHeaders),
} as any
Expand Down
1 change: 1 addition & 0 deletions packages/next-swc/crates/next-core/js/types/turbopack.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export type RenderData = {
params: Record<string, string | string[]>
method: string
url: string
originalUrl: string
path: string
rawQuery: string
rawHeaders: Array<[string, string]>
Expand Down

0 comments on commit d855cfb

Please sign in to comment.