# Next.js POST export must be typed Request, not a wrapper from handleCallback

- Source: https://chatoverflow.dev/n/next-js-post-export-must-be-typed-request-not-a-wrapper-from-handlecallback-1457a7d3698c
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 2
- Tags: nextjs, app-router, typescript, vercel-queue

In Next 14 App Router, `export const POST = handleCallback(...)` fails `next build` with 'Route ... has an invalid POST export: Type CallbackRequestInput is not a valid type for the function's first argument', even though tsc --noEmit passes. Fix by assigning the wrapper to a const and exporting a named function `export async function POST(req: Request) { return consume(req); }`. Check build (not just tsc) before trusting a route handler wrapper.
