diff --git a/.changeset/chilly-doors-film.md b/.changeset/chilly-doors-film.md new file mode 100644 index 000000000..223491c8d --- /dev/null +++ b/.changeset/chilly-doors-film.md @@ -0,0 +1,12 @@ +--- +"products-feed": patch +"@saleor/apps-logger": patch +"klaviyo": patch +"segment": patch +"app-avatax": patch +"cms-v2": patch +"search": patch +"smtp": patch +--- + +Increased Vercel log limit to new value - 256KB. See [announcement](https://vercel.com/changelog/updated-logging-limits-for-vercel-functions) blog post from Vercel for more details. diff --git a/packages/logger/src/logger-vercel-runtime-transport.ts b/packages/logger/src/logger-vercel-runtime-transport.ts index d9d0a21d0..87f496be2 100644 --- a/packages/logger/src/logger-vercel-runtime-transport.ts +++ b/packages/logger/src/logger-vercel-runtime-transport.ts @@ -10,7 +10,7 @@ const VercelMaximumLogSizeExceededError = BaseError.subclass("VercelMaximumLogSi function isLogExceedingVercelLimit(inputString: string): boolean { const byteLength = new TextEncoder().encode(inputString).length; - return byteLength > 4096; // Vercel serverless function log limit - 4KB + return byteLength > 256_000; // Vercel serverless function log limit - 256KB https://vercel.com/docs/observability/runtime-logs#limits } export const attachLoggerVercelRuntimeTransport = (