Skip to content

Commit

Permalink
docs: clarify NextRequest.ip (#37987)
Browse files Browse the repository at this point in the history
Update server.md
  • Loading branch information
balazsorban44 authored Jun 24, 2022
1 parent edd798e commit 90010be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api-reference/next/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ The `NextRequest` object is an extension of the native [`Request`](https://devel

- `cookies` - A [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) with cookies from the `Request`
- `nextUrl` - Includes an extended, parsed, URL object that gives you access to Next.js specific properties such as `pathname`, `basePath`, `trailingSlash` and `i18n`
- `ip` - Has the IP address of the `Request`
- `geo` - (Optional) Has the geo location from the `Request`, provided by your hosting platform
- `ip` - (Optional) Has the IP address of the `Request`, if provided by your hosting platform
- `geo` - (Optional) Has the geo location from the `Request`, if provided by your hosting platform

You can use the `NextRequest` object as a direct replacement for the native `Request` interface, giving you more control over how you manipulate the request.

Expand Down

0 comments on commit 90010be

Please sign in to comment.