upstash / qstash-js

Message queue for serverless
https://docs.upstash.com/qstash
MIT License
133 stars 11 forks source link

Next.js v14 Upgrade - Type Error with verifySignatureEdge #65

Closed francofantini closed 8 months ago

francofantini commented 8 months ago

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.

francofantini commented 8 months ago

Hi @fahreddinozcan thanks for taking the time to fix this issue.

I've updated to v2.1.9 but i'm still getting the error image

I don't see how #67 addresses this issue tbh. Thanks in advanced.