Skip to content

Commit 804a7f5

Browse files
feat(plugin-aws-s3): add force path style parameter to s3 client (#1305)
1 parent 809eb2a commit 804a7f5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/plugin-aws-s3/src/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ export type Options<
117117

118118
/** AWS endpoint, defaults to process.env.AWS_S3_ENDPOINT */
119119
endpoint?: string;
120+
121+
/** AWS forcePathStyle, defauls to false */
122+
forcePathStyle?: boolean;
120123
};
121124
};
122125

packages/plugin-aws-s3/src/utils/s3.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default class Client {
2020
this.client = new S3Client({
2121
region: options?.region ?? process.env.AWS_DEFAULT_REGION,
2222
endpoint: options?.endpoint ?? process.env.AWS_S3_ENDPOINT,
23+
forcePathStyle: options?.forcePathStyle ?? false,
2324
credentials: {
2425
accessKeyId: options?.accessKeyId ?? process.env.AWS_ACCESS_KEY_ID,
2526
secretAccessKey: options?.secretAccessKey ?? process.env.AWS_SECRET_ACCESS_KEY,

0 commit comments

Comments
 (0)