matthewmueller / next-cookies

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

Support for Static export feature of Next.js #2

Closed Sly777 closed 5 years ago

Sly777 commented 6 years ago

hey @matthewmueller, do you plan to approve or reject this? I'm waiting for my boilerplate if you like it :)

matthewmueller commented 6 years ago

hey there, sorry for the delay on this. I think there's a more direct flag, like ctx.export == true that we should probably use instead.

nfriedly commented 5 years ago

Hey, this bit me too, and I created a new PR and then realized this one was here already.

After reading your comments @matthewmueller, I went digging through the next.js docs and examples, but I don't see anything about a ctx.export flag. Perhaps it was there in a previous release?

Regardless, I think a pragmatic approach like this is the best option for right now, and I would appreciated this or #5 being merged in.

matthewmueller commented 5 years ago

Hey folks, do you have any interest in maintaining this?

Please see #6

nfriedly commented 5 years ago

This is now released in next-cookies@1.0.3