You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, next-connect works with API Routes only.
We need to add support for getInitialProps or better yet document middleware (vercel/next.js#7208). They both share the same PageContext and can be implemented with one same approach.
Current implementation of nextConnect() returns a function with two argument. It is possible to approach it with withMiddleware() or useMiddleware() as in next-session.
The text was updated successfully, but these errors were encountered:
Currently,
next-connect
works with API Routes only.We need to add support for
getInitialProps
or better yet document middleware (vercel/next.js#7208). They both share the same PageContext and can be implemented with one same approach.Current implementation of
nextConnect()
returns a function with two argument. It is possible to approach it withwithMiddleware()
oruseMiddleware()
as innext-session
.The text was updated successfully, but these errors were encountered: