ok no way to skip the region

This commit is contained in:
fyears
2024-01-13 21:27:42 +08:00
parent 8bb095c4aa
commit 2494a2d96e
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -277,7 +277,7 @@ export const getS3Client = (s3Config: S3Config) => {
if (VALID_REQURL && s3Config.bypassCorsLocally) {
s3Client = new S3Client({
region: s3Config.s3Region !== "" ? s3Config.s3Region : undefined,
region: s3Config.s3Region,
endpoint: endpoint,
forcePathStyle: s3Config.forcePathStyle,
credentials: {
@@ -288,7 +288,7 @@ export const getS3Client = (s3Config: S3Config) => {
});
} else {
s3Client = new S3Client({
region: s3Config.s3Region !== "" ? s3Config.s3Region : undefined,
region: s3Config.s3Region,
endpoint: endpoint,
forcePathStyle: s3Config.forcePathStyle,
credentials: {