Skip to content
Snippets Groups Projects
Unverified Commit 31cc188b authored by YS's avatar YS Committed by GitHub
Browse files

regionが空文字列のときはundefinedとする (#10410)

parent 772e05e8
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ export class S3Service {
accessKeyId: meta.objectStorageAccessKey,
secretAccessKey: meta.objectStorageSecretKey,
} : undefined,
region: meta.objectStorageRegion ?? undefined,
region: meta.objectStorageRegion ? meta.objectStorageRegion : undefined, // 空文字列もundefinedにするため ?? は使わない
tls: meta.objectStorageUseSSL,
forcePathStyle: meta.objectStorageEndpoint ? meta.objectStorageS3ForcePathStyle : false, // AWS with endPoint omitted
requestHandler: new NodeHttpHandler(handlerOption),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment