Skip to content

🎥 Make videos programmatically with React

`@remotion/lambda`: Make renderStillOnLambda() return sizeInBytes, like docs suggest

Jonny Burger2745b73ad2e8
diff --git a/packages/lambda/src/functions/still.ts b/packages/lambda/src/functions/still.ts
index 2608efedb6..e82c61e59d 100644
--- a/packages/lambda/src/functions/still.ts
+++ b/packages/lambda/src/functions/still.ts
@@ -275,6 +275,7 @@ const innerStillHandler = async ({
type: 'success' as const,
output: url,
size,
+ sizeInBytes: size,
bucketName,
estimatedPrice: formatCostsInfo(estimatedPrice),
renderId,
@@ -288,6 +289,7 @@ type RenderStillLambdaResponsePayload = {
outKey: string;
size: number;
bucketName: string;
+ sizeInBytes: number;
estimatedPrice: CostsInfo;
renderId: string;
};