Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(edge): support request.cookies as a map (#4745)
in next Next.js versions, NextRequest.cookies will be an instance of NextCookies which is some kind of a Map, instead of a plain object. This commit checks whether there's a `get` function in req.cookies, and acts accordingly, to make sure we will support newer Next.js versions with Edge Functions/Middleware
- Loading branch information