next.js
0f9b7328 - Fix relative same host redirects in node middleware (#88253)

Commit
197 days ago
Fix relative same host redirects in node middleware (#88253) This ensures we properly relativize URLs in node middleware when deployed and local. Tests weren't catching this previously as none were asserting the raw Location header value due to node-fetch auto-resolving the value. Fixes: https://github.com/vercel/next.js/issues/87950 Closes: NEXT-4826
Author
Parents
Loading