hoangvvo / next-connect

The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2
https://www.npmjs.com/package/next-connect
MIT License
1.64k stars 65 forks source link

What is "RequestContext" and how it should be used when using NextJs 13? #230

Open hywook4 opened 1 year ago

hywook4 commented 1 year ago

Hi. I'm using next-connect with NextJs 13 using app directory.

I've read the example and came up with the question what "RequestContext" is and how it can be used.

Thank you.

ghost commented 1 year ago

Anyone got this working with "app" , anyone at ALL , please write .. it be so useful! <3

fredcido commented 1 year ago

I've been also looking for a way to pass data through handlers using the context. Is that possible? Perhaps we can pass some generics from middleware that enriches the context and allow us to pass data?