Skip to content

🎥 Make videos programmatically with React

don't throw an error if no credentials are provided and S3 video is stored in a different provider and privacy is set to "no-acl"

Jonny Burger093cb5f4e46f
diff --git a/packages/lambda/src/functions/helpers/get-custom-out-name.ts b/packages/lambda/src/functions/helpers/get-custom-out-name.ts
index f9cee2e47f..cfe2084d85 100644
--- a/packages/lambda/src/functions/helpers/get-custom-out-name.ts
+++ b/packages/lambda/src/functions/helpers/get-custom-out-name.ts
@@ -17,7 +17,7 @@ export const getCustomOutName = ({
}
if (renderMetadata.outName.s3OutputProvider) {
- if (!customCredentials && renderMetadata.privacy !== 'public') {
+ if (!customCredentials && renderMetadata.privacy === 'private') {
throw new TypeError(
`The file was rendered with a custom S3 implementation and is not public, but no custom credentials were passed to downloadMedia().`
);