Fixed AWS SDK V3 bug with s3ForcePathStyle
Signed-off-by: Dang Huynh <dhhuynh2@gmail.com>
This commit is contained in:
@@ -152,7 +152,7 @@ export class AwsS3Publish implements PublisherBase {
|
||||
|
||||
// AWS forcePathStyle is an optional config. If missing, it defaults to false. Needs to be enabled for cases
|
||||
// where endpoint url points to locally hosted S3 compatible storage like Localstack
|
||||
const s3ForcePathStyle = config.getOptionalBoolean(
|
||||
const forcePathStyle = config.getOptionalBoolean(
|
||||
'techdocs.publisher.awsS3.s3ForcePathStyle',
|
||||
);
|
||||
|
||||
@@ -161,7 +161,7 @@ export class AwsS3Publish implements PublisherBase {
|
||||
credentialDefaultProvider: () => sdkCredentialProvider,
|
||||
...(region && { region }),
|
||||
...(endpoint && { endpoint }),
|
||||
...(s3ForcePathStyle && { s3ForcePathStyle }),
|
||||
...(forcePathStyle && { forcePathStyle }),
|
||||
});
|
||||
|
||||
const legacyPathCasing =
|
||||
|
||||
Reference in New Issue
Block a user