Skip to content

🎥 Make videos programmatically with React

input props from CLI

Jonny Burgerca850493e0b1
diff --git a/packages/cli/src/index.tsx b/packages/cli/src/index.tsx
index be03bf2b32..d4c0a27b2d 100644
--- a/packages/cli/src/index.tsx
+++ b/packages/cli/src/index.tsx
@@ -1,6 +1,7 @@
import chalk from 'chalk';
import xns from 'xns';
import {checkNodeVersion} from './check-version';
+import {getInputProps} from './get-input-props';
import {Log} from './log';
import {parsedCli} from './parse-command-line';
import {previewCommand} from './preview';
@@ -41,4 +42,5 @@ export const CliInternals = {
chalk,
xns,
makeProgressBar,
+ getInputProps,
};
diff --git a/packages/lambda/src/cli/render.ts b/packages/lambda/src/cli/render.ts
index e07fdf78cf..1996a70e1b 100644
--- a/packages/lambda/src/cli/render.ts
+++ b/packages/lambda/src/cli/render.ts
@@ -1,4 +1,5 @@
import {ListFunctionsCommand} from '@aws-sdk/client-lambda';
+import {CliInternals} from '@remotion/cli';
import {lambdaClient} from '../aws-clients';
import {BINARY_NAME} from '../bundle-remotion';
import {callLambda} from '../call-lambda';
@@ -59,8 +60,7 @@ export const renderCommand = async () => {
chunkSize: 20,
composition: parsedCli._[2],
serveUrl,
- // TODO: Allow to parametrize
- inputProps: {},
+ inputProps: CliInternals.getInputProps(),
},
});
for (let i = 0; i < 3000; i++) {