🎥 Make videos programmatically with React
serialize
Jonny Burger6dc7c1449a93
diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.tsindex a2578854ad..511dcc8cd5 100644--- a/packages/lambda/src/cli/commands/render/render.ts+++ b/packages/lambda/src/cli/commands/render/render.ts@@ -23,6 +23,7 @@ import {findFunctionName} from '../../helpers/find-function-name';import {quit} from '../../helpers/quit';import {Log} from '../../log';import {makeMultiProgressFromStatus, makeProgressString} from './progress';+import {Internals} from 'remotion';export const RENDER_COMMAND = 'render';@@ -94,7 +95,11 @@ export const renderCommand = async (args: string[], remotionRoot: string) => {envVariables,height,indent: false,- serializedInputPropsWithCustomSchema: JSON.stringify(inputProps),+ serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({+ indent: undefined,+ staticBase: null,+ data: inputProps,+ }).serializedString,port,puppeteerInstance: undefined,serveUrlOrWebpackUrl: serveUrl,diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.tsindex aa8a5b1aa6..620333c3b4 100644--- a/packages/lambda/src/cli/commands/still.ts+++ b/packages/lambda/src/cli/commands/still.ts@@ -16,6 +16,7 @@ import {getAwsRegion} from '../get-aws-region';import {findFunctionName} from '../helpers/find-function-name';import {quit} from '../helpers/quit';import {Log} from '../log';+import {Internals} from 'remotion';export const STILL_COMMAND = 'still';@@ -78,7 +79,11 @@ export const stillCommand = async (args: string[], remotionRoot: string) => {browserExecutable,chromiumOptions,envVariables,- serializedInputPropsWithCustomSchema: JSON.stringify(inputProps),+ serializedInputPropsWithCustomSchema: Internals.serializeJSONWithDate({+ indent: undefined,+ staticBase: null,+ data: inputProps,+ }).serializedString,port,puppeteerInstance: undefined,timeoutInMilliseconds: puppeteerTimeout,