TypeScript

  • Request vs NextRequest vs NextApiRequest [1]

    • 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