From 2b69b1fffd3bf2c335502c4011c975b3dc315c9d Mon Sep 17 00:00:00 2001 From: Fran Dios Date: Fri, 7 Feb 2025 18:52:22 +0900 Subject: [PATCH] Reduce max batch bytesize to reduce 502 errors --- packages/theme/src/cli/utilities/theme-uploader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/theme/src/cli/utilities/theme-uploader.ts b/packages/theme/src/cli/utilities/theme-uploader.ts index f07405a9067..c676eb74d73 100644 --- a/packages/theme/src/cli/utilities/theme-uploader.ts +++ b/packages/theme/src/cli/utilities/theme-uploader.ts @@ -27,8 +27,8 @@ type FileBatch = ChecksumWithSize[] */ // Limits for Bulk Requests export const MAX_BATCH_FILE_COUNT = 20 -// 1MB -export const MAX_BATCH_BYTESIZE = 1024 * 1024 +// 512KB +export const MAX_BATCH_BYTESIZE = 1024 * 512 export const MAX_UPLOAD_RETRY_COUNT = 2 export function uploadTheme(