jakeburden / next-absolute-url

Get the absolute URL of your Next.js app (optionally set a localhost dev URL)
300 stars 30 forks source link

Investigate: using req.headers['x-forwarded-host'] #1

Closed jakeburden closed 5 years ago

jakeburden commented 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.

Original discussion: https://spectrum.chat/zeit/general/an-unexpected-error-has-occurred-serverless-next-js~270a120a-5c88-47e0-b7d9-a4ddf4611886

image

relferreira commented 5 years ago

Hi @jekrb, opened the PR #2 with this modification