Merge pull request #15613 from dhhuynh2/20230106-s3-pathstyle-fix

s3ForcePathStyle no longer the correct name for techdocs S3 publisher
This commit is contained in:
Morgan Bentell
2023-01-19 12:18:19 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
@@ -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 =