🎥 Make videos programmatically with React
`@remotion/cli`: Add Config.setBenchmarkRuns() for runs option
JonnyBurgeraeaf13277de6
diff --git a/packages/cli/src/config/index.ts b/packages/cli/src/config/index.tsindex 413aa72c48..22fdd2b0d9 100644--- a/packages/cli/src/config/index.ts+++ b/packages/cli/src/config/index.ts@@ -118,6 +118,7 @@ const {imageSequenceOption,bundleCacheOption,envFileOption,+ runsOption,} = BrowserSafeApis.options;declare global {@@ -595,6 +596,11 @@ type FlatConfig = RemotionConfigObject &* Choose between using Chrome Headless Shell or Chrome for Testing*/setChromeMode: (chromeMode: ChromeMode) => void;+ /**+ * Set how many times the video should be rendered during a benchmark.+ * Default: 3+ */+ setBenchmarkRuns: (runs: number) => void;/*** @deprecated 'The config format has changed. Change `Config.Bundling.*()` calls to `Config.*()` in your config file.'*/@@ -742,6 +748,7 @@ export const Config: FlatConfig = {setForceNewStudioEnabled: forceNewStudioOption.setConfig,setIPv4: ipv4Option.setConfig,setBundleOutDir: outDirOption.setConfig,+ setBenchmarkRuns: runsOption.setConfig,};export const ConfigInternals = {diff --git a/packages/docs/docs/config.mdx b/packages/docs/docs/config.mdxindex d05d00ab59..405c59e85d 100644--- a/packages/docs/docs/config.mdx+++ b/packages/docs/docs/config.mdx@@ -99,6 +99,18 @@ Config.setBundleOutDir('./custom-build-dir');The [command line flag](/docs/cli/bundle#--out-dir) `--out-dir` will take precedence over this option.+## `setBenchmarkRuns()`++<Options id="runs" />++```ts twoslash title="remotion.config.ts"+import {Config} from '@remotion/cli/config';+// ---cut---+Config.setBenchmarkRuns(5);+```++The [command line flag](/docs/cli/benchmark#--runs) `--runs` will take precedence over this option.+## `setEntryPoint()`<AvailableFrom v="3.2.40" />Sets the Remotion [entry point](/docs/terminology/entry-point), you don't have to specify it for CLI commands.