It is in local that it's not working for me. So you set the stripe initilization to this (?): ```j

It is in local that it's not working for me.

So you set the stripe initilization to this (?):
const stripe = new Stripe(env.STRIPE_SECRET_KEY, { 
    apiVersion: '2023-10-16', 
    httpClient: Stripe.createFetchHttpClient()
  })   


And then run:
const rawBody = await request.text()
const stripeSignature = request.headers.get('stripe-signature')

event = await stripe.webhooks.constructEventAsync(rawBody, stripeSignature, env.STRIPE_WEBHOOK_SECRET)
Was this page helpful?