🎥 Make videos programmatically with React
Update option & add it to docs
Pramod9e20d926393f
diff --git a/packages/docs/docs/lambda/rendermediaonlambda.mdx b/packages/docs/docs/lambda/rendermediaonlambda.mdxindex c92054e8d2..bdff0a3e8d 100644--- a/packages/docs/docs/lambda/rendermediaonlambda.mdx+++ b/packages/docs/docs/lambda/rendermediaonlambda.mdx@@ -398,6 +398,10 @@ Passes `forcePathStyle` to the AWS S3 client. If you don't know what this is, yoAn [identifier](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html#sc-compare) for the S3 storage class of the rendered media. Default: `undefined` (which is `STANDARD`).+### `isProduction?`<AvailableFrom v="4.0.408"/>++<Options id="is-production" />+### ~~`dumpBrowserLogs?`~~_optional - default `false`, deprecated in v4.0_diff --git a/packages/docs/docs/lambda/renderstillonlambda.mdx b/packages/docs/docs/lambda/renderstillonlambda.mdxindex e84e1aede0..1208abb5fb 100644--- a/packages/docs/docs/lambda/renderstillonlambda.mdx+++ b/packages/docs/docs/lambda/renderstillonlambda.mdx@@ -263,6 +263,10 @@ Passes `forcePathStyle` to the AWS S3 client. If you don't know what this is, yoAn [identifier](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html#sc-compare) for the S3 storage class of the rendered media. Default: `undefined` (which is `STANDARD`).+### `isProduction?`<AvailableFrom v="4.0.408"/>++<Options id="is-production" />+### ~~`dumpBrowserLogs?`~~_optional - default `false`, deprecated in v4.0_diff --git a/packages/docs/docs/renderer/render-media.mdx b/packages/docs/docs/renderer/render-media.mdxindex 67e0f768ae..a08f7d676d 100644--- a/packages/docs/docs/renderer/render-media.mdx+++ b/packages/docs/docs/renderer/render-media.mdx@@ -480,6 +480,10 @@ An option to be used only if implementing a distributed renderer, see [Distribut<Options id="api-key" />+### `isProduction?`<AvailableFrom v="4.0.408"/>++<Options id="is-production" />+### ~~`parallelism?`~~Renamed to `concurrency` in v3.2.17.diff --git a/packages/docs/docs/renderer/render-still.mdx b/packages/docs/docs/renderer/render-still.mdxindex 16feb76d1d..7b419eff6d 100644--- a/packages/docs/docs/renderer/render-still.mdx+++ b/packages/docs/docs/renderer/render-still.mdx@@ -227,6 +227,10 @@ Lets you set a custom user agent that the headless Chrome browser assumes.<Options id="api-key" />+### `isProduction?`<AvailableFrom v="4.0.408"/>++<Options id="is-production" />+### ~~`dumpBrowserLogs?`~~_optional - default `false`, deprecated in v4.0_diff --git a/packages/docs/docs/web-renderer/render-media-on-web.mdx b/packages/docs/docs/web-renderer/render-media-on-web.mdxindex 18cda25068..d08b3e87b5 100644--- a/packages/docs/docs/web-renderer/render-media-on-web.mdx+++ b/packages/docs/docs/web-renderer/render-media-on-web.mdx@@ -281,6 +281,10 @@ _string_A [license key](/docs/licensing) to use for this render.See [Telemetry in client-side rendering](/docs/client-side-rendering/telemetry) for more information.+### `isProduction?`<AvailableFrom v="4.0.408"/>++<Options id="is-production" />+## Return valueReturns a promise resolving to an object with the following properties:diff --git a/packages/docs/docs/web-renderer/render-still-on-web.mdx b/packages/docs/docs/web-renderer/render-still-on-web.mdxindex 609d7479ae..eec67d1ee7 100644--- a/packages/docs/docs/web-renderer/render-still-on-web.mdx+++ b/packages/docs/docs/web-renderer/render-still-on-web.mdx@@ -159,6 +159,10 @@ _string_A [license key](/docs/licensing) to use for this render.See [Telemetry in client-side rendering](/docs/client-side-rendering/telemetry) for more information.+### `isProduction?`<AvailableFrom v="4.0.408"/>++<Options id="is-production" />+## Return valueReturns a promise resolving to an object with the following properties:diff --git a/packages/renderer/src/options/is-production.tsx b/packages/renderer/src/options/is-production.tsxindex 426a445fc2..795188091e 100644--- a/packages/renderer/src/options/is-production.tsx+++ b/packages/renderer/src/options/is-production.tsx@@ -9,9 +9,9 @@ export const isProductionOption = {cliFlag,description: () => (<>- Pass "true" if you are rendering in production and the default value is- "true". All the production renders are considered as billable renders on- the Pro platform.+ Pass <code>true</code> if you are rendering in production and the default+ is <code>true</code>. All the production renders are considered as+ billable renders on the Pro platform.</>),ssrName: 'isProduction' as const,@@ -20,14 +20,14 @@ export const isProductionOption = {if (commandLine[cliFlag] !== undefined) {return {source: 'cli',- value: commandLine[cliFlag] as string | null,+ value: commandLine[cliFlag] as boolean | null,};}if (currentIsProductionKey !== null) {return {source: 'config',- value: currentIsProductionKey.toString(),+ value: currentIsProductionKey,};}@@ -36,8 +36,8 @@ export const isProductionOption = {value: null,};},- setConfig: (value: string | null) => {- currentIsProductionKey = value === 'true';+ setConfig: (value: boolean | null) => {+ currentIsProductionKey = value;},- type: null as string | null,-} satisfies AnyRemotionOption<string | null>;+ type: false as boolean | null,+} satisfies AnyRemotionOption<boolean | null>;