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

Middlerware Set Cookie API Ref #31707

Merged
merged 5 commits into from
Nov 29, 2021

Conversation

MaedahBatool
Copy link
Contributor

Documented the method to set a cookie on Response.

As far as I can see in next/dist/server/web/spec-extension/response.js there are two methods, one is to get the cookies and the other one is to set a cookie — and the latter was missing from API Reference. Documented that in this PR.

Feature

Documentation / Examples

  • Make sure the linting passes by running yarn lint

@molebox molebox marked this pull request as ready for review November 29, 2021 19:54
@leerob leerob merged commit 2781b8e into vercel:canary Nov 29, 2021
@MaedahBatool MaedahBatool changed the title 👌 IMPROVE: Middlerware Set Cookie API Ref Middlerware Set Cookie API Ref Dec 1, 2021
@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing cookie in NextResponse obj
6 participants