Closed huozhi closed 4 days ago
Commit: 05b3f7d67f163ba7cb5e3f8e8783b24e6e798f20
Commit: 6061936c139ef601415497ac2cee950862a729e8
TURBOPACK=1 pnpm test-start test/e2e/skip-trailing-slash-redirect/index.test.ts
(turbopack)
Read more about building and testing Next.js in contributing.md.
pnpm test-start test/e2e/middleware-trailing-slash/test/index.test.ts
Read more about building and testing Next.js in contributing.md.
pnpm test-dev test/development/middleware-errors/index.test.ts
Read more about building and testing Next.js in contributing.md.
TURBOPACK=1 pnpm test-start test/e2e/middleware-redirects/test/index.test.ts
(turbopack)
Read more about building and testing Next.js in contributing.md.
pnpm test-start test/e2e/middleware-general/test/index.test.ts
Read more about building and testing Next.js in contributing.md.
TURBOPACK=1 pnpm test-start test/e2e/app-dir/app/index.test.ts
(turbopack)
Read more about building and testing Next.js in contributing.md.
__NEXT_EXPERIMENTAL_PPR=true pnpm test-start test/e2e/app-dir/app/experimental-compile.test.ts
(PPR)
Read more about building and testing Next.js in contributing.md.
What
Add isEdgeRendering check condition for rewrite logic in edge adpator
Fixes #66837 Closes NEXT-3545
Why
From headers
x-middleware-rewrite
, it's still relative url/rewrite
, reconstructing the url will lead to crash as it doesn't contain host.