hoangvvo / next-connect

The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2

Home Page:https://www.npmjs.com/package/next-connect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hywook4 opened this issue · comments

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.

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

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?