🎥 Make videos programmatically with React
With custom credentials, use provided region for S3 endpoint
Jianneng Li1060fc180b87
diff --git a/packages/lambda/src/shared/aws-clients.ts b/packages/lambda/src/shared/aws-clients.tsindex c4c2f14d4c..e507ae0109 100644--- a/packages/lambda/src/shared/aws-clients.ts+++ b/packages/lambda/src/shared/aws-clients.ts@@ -203,7 +203,7 @@ export const getServiceClient = <T extends keyof ServiceMapping>({if (customCredentials) {_clients[key] = new Client({- region: 'us-east-1',+ region: customCredentials.endpoint.endsWith('amazonaws.com') ? region: 'us-east-1',credentials:customCredentials.accessKeyId && customCredentials.secretAccessKey? {