Skip to content

🎥 Make videos programmatically with React

`docs`: document Lambda overwrite default (#9565)

Tyler Gibbsfab8a185780f
diff --git a/packages/docs/docs/5-0-migration.mdx b/packages/docs/docs/5-0-migration.mdx
index 01000b6abb..5a2dc87019 100644
--- a/packages/docs/docs/5-0-migration.mdx
+++ b/packages/docs/docs/5-0-migration.mdx
@@ -107,9 +107,9 @@ Previously, they returned the point or tangent at the end of the path.
## `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.
+The default value of `overwrite` in [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda) has changed from `false` to `true`. 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.
+**Required action**: Set `overwrite: false` if an existing file should still cause an error.
## `openBrowser()` now takes a `logLevel` instead of `shouldDumpIo`
diff --git a/packages/docs/docs/lambda/rendermediaonlambda.mdx b/packages/docs/docs/lambda/rendermediaonlambda.mdx
index e8d14f4be2..e4eeec1cbc 100644
--- a/packages/docs/docs/lambda/rendermediaonlambda.mdx
+++ b/packages/docs/docs/lambda/rendermediaonlambda.mdx
@@ -284,7 +284,8 @@ Results in invalid SSL certificates, such as self-signed ones, being ignored.
### `overwrite?`<AvailableFrom v="3.2.25" />
-If a custom out name is specified and a file already exists at this key in the S3 bucket, decide whether the file should be overwritten. Default `false`.
+If a custom out name is specified and a file already exists at this key in the S3 bucket, decide whether the file should be overwritten. The default is `false` in Remotion 4.0 and `true` in Remotion 5.0.
+
If the file exists and `overwrite` is `false`, an error will be thrown.
### `rendererFunctionName?`<AvailableFrom v="3.3.38" />