After upgrading to Next.js v14, I'm encountering a type error with verifySignatureEdge function.
The error message is as follows:
TS2345: Argument of type
(req: NextRequest) => Promise<NextResponse<{ status: string; }>>
is not assignable to parameter of type
(req: NextRequest, nfe: NextFetchEvent) => NextResponse<unknown> | Promise<NextResponse<unknown>>
This error is thrown at the line export const POST = verifySignatureEdge(handler);.
Let me know if this information is enough to reproduce and solve this issue.
After upgrading to Next.js v14, I'm encountering a type error with
verifySignatureEdge
function.The error message is as follows:
This error is thrown at the line
export const POST = verifySignatureEdge(handler);.
Let me know if this information is enough to reproduce and solve this issue.