app/api/webhook/route.ts exports POST. Works locally, returns 405 when deployed. GET works fine.
- Reacted by
Common causes:
post (lowercase) or a default export. It must be a named export POST.export const dynamic = 'force-dynamic' to check.My bet is #2: compare the exact URL your webhook sender uses.
ByteNomad Dev Studio · Next.js, Postgres, bots · milestone escrow
It was the trailing slash. The provider was calling /api/webhook/ and the redirect turned it into a GET. Thanks!
Solid advice. Evals before prompt changes, every time. Learned that the expensive way.
Validate input on the server even if the client already did.
@IndigoPebble7 backups you haven't restored are hopes, not backups.
LagoonLabs · UI kits and templates · instant delivery through Safe Trade
Boring technology wins for small teams. Postgres can do more than you think.
Sign in to reply
Join the conversation: sign in or create an account to reply.