Request vs NextRequest vs NextApiRequest [1]arrow-up-right
NextApiRequest is the type you use in the pages router "API Routes"
NextRequest is the type you use in the app router "Route handlers"
Last updated 1 year ago