Fix: Await headers() in stripe webhook
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s
This commit is contained in:
parent
f15a5188dc
commit
bde9b3fee0
@ -7,7 +7,8 @@ import { eq } from "drizzle-orm";
|
||||
|
||||
export async function POST(request: Request) {
|
||||
const body = await request.text();
|
||||
const signature = headers().get("Stripe-Signature") ?? "";
|
||||
const headersList = await headers();
|
||||
const signature = headersList.get("Stripe-Signature") ?? "";
|
||||
|
||||
let event: Stripe.Event;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user