🎥 Make videos programmatically with React
fix frames-per-lambda bug
Jonny Burgerf3b1a5fabbc8
diff --git a/packages/docs/docs/lambda/changelog.md b/packages/docs/docs/lambda/changelog.mdindex b373314870..2116ed46a2 100644--- a/packages/docs/docs/lambda/changelog.md+++ b/packages/docs/docs/lambda/changelog.md@@ -22,6 +22,7 @@ Added the option to increase the Lambda disk space and therefore enable renderin- You can set a disk space of up to 10GB- Adding more storage has a miniscule effect on price. According to our calculation, having 10GB of storage instead of the default 512MB adds only ~0.2% to the cost of Lambda.- Breaking change: The `estimatePrice()` method now takes CPU architecture, disk size and number of lambdas invoked into account. These parameters have been added to the function and been made mandatory.+- Fixes a bug where `--frames-per-lambda` would be set to 20 instead of the dynamic value suggested by the docs, if rendered via CLI.## March 17th, 2022diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.tsindex 38df594ced..130899e229 100644--- a/packages/lambda/src/cli/commands/render/render.ts+++ b/packages/lambda/src/cli/commands/render/render.ts@@ -4,7 +4,6 @@ import {getRenderProgress} from '../../../api/get-render-progress';import {renderMediaOnLambda} from '../../../api/render-media-on-lambda';import {BINARY_NAME,- DEFAULT_FRAMES_PER_LAMBDA,DEFAULT_MAX_RETRIES,DEFAULT_OUTPUT_PRIVACY,LambdaRoutines,@@ -94,7 +93,7 @@ export const renderCommand = async (args: string[]) => {region,maxRetries,composition,- framesPerLambda: framesPerLambda ?? DEFAULT_FRAMES_PER_LAMBDA,+ framesPerLambda: framesPerLambda ?? undefined,privacy,logLevel,frameRange: frameRange ?? undefined,