NextRequest

Next.js' extension of the Web Request object, adding a cookies helper and nextUrl, a parsed URL with Next.js routing details.

In more detail

Route Handlers and middleware can receive it. In Next.js 15 the geo and ip properties were removed; hosting platforms now provide location and IP helpers, such as geolocation() from @vercel/functions.

Related terms

Taught in

References