diff --git a/.changeset/strong-rivers-peel.md b/.changeset/strong-rivers-peel.md new file mode 100644 index 00000000..f4b9a82e --- /dev/null +++ b/.changeset/strong-rivers-peel.md @@ -0,0 +1,5 @@ +--- +"@saleor/app-sdk": patch +--- + +Now, the fixed body size limit was removed, this means there is no restriction for size of the webhook payload, sent by Saleor. diff --git a/src/handlers/next/saleor-webhooks/process-saleor-webhook.ts b/src/handlers/next/saleor-webhooks/process-saleor-webhook.ts index d0419255..a6451802 100644 --- a/src/handlers/next/saleor-webhooks/process-saleor-webhook.ts +++ b/src/handlers/next/saleor-webhooks/process-saleor-webhook.ts @@ -128,7 +128,6 @@ export const processSaleorWebhook: ProcessSaleorWebhook = async ({ const rawBody = ( await getRawBody(req, { length: req.headers["content-length"], - limit: "1mb", }) ).toString(); if (!rawBody) {