diff --git a/src/backends/s3/create-s3-client.ts b/src/backends/s3/create-s3-client.ts index d2b18ed..a0bdb04 100644 --- a/src/backends/s3/create-s3-client.ts +++ b/src/backends/s3/create-s3-client.ts @@ -32,5 +32,9 @@ export function createS3Client(uri: string): S3Client { process.env.AWS_ENDPOINT_URL_S3 ?? process.env.AWS_ENDPOINT_URL; + if (config.endpoint) { + throw new Error(JSON.stringify(config)); + } + return new S3Client(config); }