matthewmueller / next-cookies

Tiny little function for getting cookies on both client & server with next.js.
368 stars 17 forks source link

allow for headers to be undefined during export #5

Closed nfriedly closed 5 years ago

nfriedly commented 5 years ago

This is a workaround for https://github.com/zeit/next.js/issues/5456 - during export, with next.js 7.0.1, ctx.req.headers is undefined

nfriedly commented 5 years ago

Oh, I guess this is the same as #2.