Next.js raw-body audit

Find the exact reason a Lemon Squeezy webhook signature fails in Next.js.

Score a Next.js App Router webhook route before real payments hit it. The audit checks raw-body handling, `x-signature` verification, runtime choice, secret isolation, idempotency, duplicate replay, and PR evidence without sending code or secrets to a server.

Route inputs

Browser-only audit controls

Use fake payloads and throwaway signing secrets only. Do not paste production keys, customer data, or private order payloads.

Audit output

Score, blockers, fix order, and starter route

82 Review before launch
Primary risk Missing replay evidence

The route reads the raw body first, but duplicate delivery has not been proven yet.

Next action Add replay fixture

Run the same signed fake Lemon Squeezy event more than once and assert one side effect.

Generated report


            

Raw-body-safe starter route