basalt / subscriptions/src / DEFAULT_WEBHOOK_MAX_BYTES
Variable: DEFAULT_WEBHOOK_MAX_BYTES
> const DEFAULT_WEBHOOK_MAX_BYTES: number
Defined in: subscriptions/src/plugin.ts:309
Most bytes of a webhook delivery that will be read. Stripe, Paddle and Lemon Squeezy events are measured in kilobytes; the endpoint is unauthenticated by construction (the signature IS the authentication, and it can only be checked once the bytes are in memory), so the cap is what stops it being a memory amplifier. Raise it with billingWebhookRoute(gateway, { maxBytes }) if a gateway you use sends more.