From 73966df0ba7adbec4166a4fba0345057a2ab210a Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Mon, 24 Jan 2022 10:44:20 -0600 Subject: [PATCH] Update `next/server` documentation for `geo`. --- docs/api-reference/next/server.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/api-reference/next/server.md b/docs/api-reference/next/server.md index 2d3fd8b91e975..0d42e941acb5a 100644 --- a/docs/api-reference/next/server.md +++ b/docs/api-reference/next/server.md @@ -37,14 +37,9 @@ The `NextRequest` object is an extension of the native [`Request`](https://devel - `cookies` - Has the 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` -- `geo` - Has the geo location from the `Request` - - `geo.country` - The country code - - `geo.region` - The region code - - `geo.city` - The city - - `geo.latitude` - The latitude - - `geo.longitude` - The longitude - `ip` - Has the IP address of the `Request` - `ua` - Has the user agent +- `geo` - (Optional) Has the geo location from the `Request`, 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.