Skip to content

Middlerware Set Cookie API Ref - #31707

Merged
leerob merged 5 commits into
vercel:canaryfrom
MaedahBatool:maedahbatool/middleware-typo
Nov 29, 2021
Merged

leerob merged 5 commits into
vercel:canaryfrom
MaedahBatool:maedahbatool/middleware-typo

Conversation

@MaedahBatool

Copy link
Copy Markdown
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