🎥 Make videos programmatically with React
more V5 preparations
Jonny Burgerb38986d3980c
diff --git a/packages/docs/docs/5-0-migration.mdx b/packages/docs/docs/5-0-migration.mdxindex f5e1cd589f..7bfbdeecdb 100644--- a/packages/docs/docs/5-0-migration.mdx+++ b/packages/docs/docs/5-0-migration.mdx@@ -68,6 +68,12 @@ The values passed in there did not influence the calculation at all. Therefore w**Required action**: Remove the `from` and `to` options from your code.+## `overwrite` is now `true` by default in `renderMediaOnLambda()`++The default value of `overwrite` has been changed to `true` in `renderMediaOnLambda()`. This skips a check that the file already exists in the S3 bucket, which makes the render start faster.++**Required action**: If you want to keep the old behavior, set `overwrite: false`, explicitly.+## License changesRemotion 5.0 has an updated license. View the [license](https://github.com/remotion-dev/remotion/blob/5-0-license/LICENSE.md) here or compare the [changes](https://github.com/remotion-dev/remotion/pull/3750).diff --git a/packages/lambda/src/api/make-lambda-payload.ts b/packages/lambda/src/api/make-lambda-payload.tsindex e4c6898ca2..00d2c5f64b 100644--- a/packages/lambda/src/api/make-lambda-payload.ts+++ b/packages/lambda/src/api/make-lambda-payload.ts@@ -33,6 +33,7 @@ import type {AwsProvider} from '../functions/aws-implementation';import {awsImplementation} from '../functions/aws-implementation';import {validateWebhook} from '@remotion/serverless/client';+import {NoReactInternals} from 'remotion/no-react';import {validateDownloadBehavior} from '../shared/validate-download-behavior';import {validateFramesPerLambda} from '../shared/validate-frames-per-lambda';import {validateLambdaCodec} from '../shared/validate-lambda-codec';@@ -181,7 +182,7 @@ export const makeLambdaRenderMediaPayload = async ({downloadBehavior,muted,version: VERSION,- overwrite: overwrite ?? false,+ overwrite: overwrite ?? NoReactInternals.ENABLE_V5_BREAKING_CHANGES,audioBitrate: audioBitrate ?? null,videoBitrate: videoBitrate ?? null,encodingBufferSize: encodingBufferSize ?? null,