rsnext/packages/next/next-server
umarsenpai 9fcfce3463
Fix serving Images through external rewrite with Image component (#21001)
This PR fixes the issue described here: https://github.com/vercel/next.js/issues/20909

The _req passed to getRequestHandler doesn't have `on` function which is required by http-proxy. It throws the error e.on is not a function. We should also wait for buffer to finish writing before sending the response. 

Fixes: https://github.com/vercel/next.js/issues/20909
Closes: https://github.com/vercel/next.js/issues/24177
2021-04-17 21:03:08 +00:00
..
lib Use regex lexer for gathering named groups from has (#23626) 2021-04-13 12:34:51 +00:00
server Fix serving Images through external rewrite with Image component (#21001) 2021-04-17 21:03:08 +00:00