🎥 Make videos programmatically with React
Merge branch 'main' into pr/1427
Jonny Burgerd9835033cd43
diff --cc packages/cli/src/render.tsxindex b23b43aaf0,3cf29b8e52..e0dc11a68d--- a/packages/cli/src/render.tsx+++ b/packages/cli/src/render.tsx@@@ -180,15 -158,8 +160,9 @@@ export const render = async (remotionRoport,});- const config = comps.find((c) => c.id === compositionId);-- if (!config) {- throw new Error(`Cannot find composition with ID ${compositionId}`);- }-- config['height'] = height;- config['width'] = width;-+ const {compositionId, config, reason} = await getCompositionId(comps);-++ config.height = height;++ config.width = width;RenderInternals.validateEvenDimensionsWithCodec({width: config.width,height: config.height,diff --cc packages/lambda/src/test/integration/webhooks.test.tsindex 1a26e7aa5c,98cc55f721..eb50bfd3c1--- a/packages/lambda/src/test/integration/webhooks.test.ts+++ b/packages/lambda/src/test/integration/webhooks.test.ts@@@ -100,8 -103,6 +103,8 @@@ describe('Webhooks', () =>},audioBitrate: null,videoBitrate: null,- height: undefined,- width: undefined,++ height: null,++ width: null,},extraContext);@@@ -172,23 -175,18 +177,20 @@@webhook: {url: TEST_URL, secret: 'TEST_SECRET'},audioBitrate: null,videoBitrate: null,- height: undefined,- width: undefined,+ bucketName: 'abc',+ renderId: 'abc',++ height: null,++ width: null,},- extraContext- );- const startRes = res as Await<LambdaReturnValues[LambdaRoutines.start]>;-- (await handler({- type: LambdaRoutines.status,- bucketName: startRes.bucketName,- renderId: startRes.renderId,- version: VERSION,- },- extraContext- )) as Await<LambdaReturnValues[LambdaRoutines.status]>;+ ...extraContext,+ getRemainingTimeInMillis: () => 1000,+ }+ );+ await new Promise((resolve) => {+ setTimeout(resolve, 2000);+ });expect(mockableHttpClients.http).toHaveBeenCalledTimes(1);expect(mockableHttpClients.http).toHaveBeenCalledWith(TEST_URL,