Fix: Await headers() in stripe webhook
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 1s

This commit is contained in:
Ahmed Darrazi 2025-12-05 22:58:12 +01:00
parent f15a5188dc
commit bde9b3fee0

View File

@ -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;