maticzav/nookies

ctx.req.hostname is only available when using a custom server

gersomvg opened this issue · 2 comments

This plugin breaks on Next 9, when using the default next (dev) server, because nookies tries to read ctx.req.hostname. It should read ctx.req.headers.host.

See also: https://spectrum.chat/next-js/general/ctx-req-hostname-removed~c246de06-2898-4785-8f9c-38c22cc2d983

Nvm, tried to PR this issue but found out hostname is not used at all in the source code of nookie. Followed the stack trace wrongly 🤦‍♂️

@grsmvg no worries! Let me know if you need any help whatsoever. 🙂