Last updated 11 months ago
Request vs NextRequest vs NextApiRequest
NextApiRequest is the type you use in the pages router "API Routes"
NextRequest is the type you use in the app router "Route handlers"