From 49bcf3966e23a21454170b5a63d513a960fa0c5e Mon Sep 17 00:00:00 2001 From: NicoSerranoP Date: Tue, 16 Apr 2024 10:19:47 -0500 Subject: [PATCH] fix: increase memory limits to 2gb for uploading functions --- packages/backend/src/functions/storage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/functions/storage.ts b/packages/backend/src/functions/storage.ts index da996897..1a93054c 100644 --- a/packages/backend/src/functions/storage.ts +++ b/packages/backend/src/functions/storage.ts @@ -341,7 +341,7 @@ export const generateGetObjectPreSignedUrl = functions export const startMultiPartUpload = functions .region("europe-west1") .runWith({ - memory: "1GB" + memory: "2GB" }) .https.onCall(async (data: StartMultiPartUploadData, context: functions.https.CallableContext): Promise => { if (!context.auth || (!context.auth.token.participant && !context.auth.token.coordinator)) @@ -487,7 +487,7 @@ export const generatePreSignedUrlsParts = functions export const completeMultiPartUpload = functions .region("europe-west1") .runWith({ - memory: "1GB" + memory: "2GB" }) .https.onCall(async (data: CompleteMultiPartUploadData, context: functions.https.CallableContext): Promise => { if (!context.auth || (!context.auth.token.participant && !context.auth.token.coordinator))