Closed jakeburden closed 5 years ago
Opening this issue so I don't forget. It might be a good idea to use req.headers['x-forwarded-host'] as now dev serves local lambda functions from a different port.
req.headers['x-forwarded-host']
now dev
Original discussion: https://spectrum.chat/zeit/general/an-unexpected-error-has-occurred-serverless-next-js~270a120a-5c88-47e0-b7d9-a4ddf4611886
Hi @jekrb, opened the PR #2 with this modification
Opening this issue so I don't forget. It might be a good idea to use
req.headers['x-forwarded-host']
asnow dev
serves local lambda functions from a different port.Original discussion: https://spectrum.chat/zeit/general/an-unexpected-error-has-occurred-serverless-next-js~270a120a-5c88-47e0-b7d9-a4ddf4611886