🎥 Make videos programmatically with React
`@remotion/lambda`: Fix progress going backwards if saving to another cloud
Jonny Burger80281d7aad40
diff --git a/packages/lambda/src/functions/helpers/find-output-file-in-bucket.ts b/packages/lambda/src/functions/helpers/find-output-file-in-bucket.tsindex b95fa214d7..dc58accfd1 100644--- a/packages/lambda/src/functions/helpers/find-output-file-in-bucket.ts+++ b/packages/lambda/src/functions/helpers/find-output-file-in-bucket.ts@@ -30,7 +30,7 @@ export const findOutputFileInBucket = async ({const {renderBucketName, key} = getExpectedOutName(renderMetadata,bucketName,- null,+ customCredentials,);try {@@ -38,6 +38,7 @@ export const findOutputFileInBucket = async ({bucketName,key,region,+ customCredentials,});return {lastModified: head.LastModified?.getTime() as number,diff --git a/packages/lambda/src/functions/helpers/io.ts b/packages/lambda/src/functions/helpers/io.tsindex b166b96075..82cd87c660 100644--- a/packages/lambda/src/functions/helpers/io.ts+++ b/packages/lambda/src/functions/helpers/io.ts@@ -191,15 +191,17 @@ export const lambdaHeadCommand = async ({bucketName,key,region,+ customCredentials,}: {bucketName: string;key: string;region: AwsRegion;+ customCredentials: CustomCredentials | null;}): Promise<{LastModified?: Date | undefined;ContentLength?: number | undefined;}> => {- const head = await getS3Client(region, null).send(+ const head = await getS3Client(region, customCredentials).send(new HeadObjectCommand({Bucket: bucketName,Key: key,