fix(build): pin turbopack.root, update comment for middleware to proxy rename (#897)

Pins turbopack.root to the project directory so a parent-directory lockfile cannot make Turbopack misdetect the workspace root, and updates a stale comment reference (middleware.ts is now proxy.ts). The rename itself already landed on main.
This commit is contained in:
Jonas Flodén
2026-07-06 12:13:59 +02:00
committed by GitHub
parent 8094f288fa
commit 185b6f799c
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export async function GET(request: NextRequest) {
cookiesToSet.forEach((cookie) => {
// Mirror the cookie into request.cookies so subsequent getAll()
// calls within this request lifecycle return the updated values
// (matches the pattern used in middleware.ts).
// (matches the pattern used in proxy.ts).
request.cookies.set(cookie.name, cookie.value)
pendingCookies.push(cookie)
})