From ea68ac43b57f0304a6b970a400bfbe62bf6ecba7 Mon Sep 17 00:00:00 2001 From: Aditya Patadia Date: Sat, 28 Oct 2023 13:48:58 +0530 Subject: [PATCH] subdomain used as per S3 latest endpoint guidelines --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1f73fdb..0f9119a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -72,11 +72,11 @@ class S3Storage extends StorageBase { if(this.forcePathStyle) { defaultHost = `https://s3${ - this.region === 'us-east-1' ? '' : `-${this.region}` + this.region === 'us-east-1' ? '' : `.${this.region}` }.amazonaws.com/${this.bucket}` } else { defaultHost = `https://${this.bucket}.s3${ - this.region === 'us-east-1' ? '' : `-${this.region}` + this.region === 'us-east-1' ? '' : `.${this.region}` }.amazonaws.com` }