Skip to content

Commit 2bd296d

Browse files
authored
docs(NextRequest): req.cookie => req.cookies (vercel#31975)
1 parent 306c467 commit 2bd296d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-reference/next/server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The function can be a default export and as such, does **not** have to be named
3535

3636
The `NextRequest` object is an extension of the native [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request) interface, with the following added methods and properties:
3737

38-
- `cookie` - Has the cookies from the `Request`
38+
- `cookies` - Has the cookies from the `Request`
3939
- `nextUrl` - Includes an extended, parsed, URL object that gives you access to Next.js specific properties such as `pathname`, `basePath`, `trailingSlash` and `i18n`
4040
- `geo` - Has the geo location from the `Request`
4141
- `geo.country` - The country code

0 commit comments

Comments
 (0)