Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[edge] support request.cookies as a map #4745

Merged
merged 1 commit into from Jun 21, 2022

Commits on Jun 21, 2022

  1. [edge] support request.cookies as a map

    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
    Schniz committed Jun 21, 2022
    Copy the full SHA
    f88a2bd View commit details
    Browse the repository at this point in the history