Unverified Commit 8602bf35 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

fix query for app dir in turbopack (#48828)

### What?

Fix the query for app dir

### Why?

it's not correct in app dir
parent 287e379b
...@@ -252,8 +252,7 @@ async function runOperation(renderData: RenderData) { ...@@ -252,8 +252,7 @@ async function runOperation(renderData: RenderData) {
headers: headersFromEntries(renderData.rawHeaders), headers: headersFromEntries(renderData.rawHeaders),
} as any } as any
const res: ServerResponse = new ServerResponseShim(req) as any const res: ServerResponse = new ServerResponseShim(req) as any
const parsedQuery = parse(renderData.rawQuery) const query = parse(renderData.rawQuery)
const query = { ...parsedQuery, ...renderData.params }
const renderOpt: Omit< const renderOpt: Omit<
RenderOpts, RenderOpts,
'App' | 'Document' | 'Component' | 'pathname' 'App' | 'Document' | 'Component' | 'pathname'
......
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