Skip to content

Commit

Permalink
Add passing of useAccelerateEndpoint parameter on init
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmurphy committed Jan 19, 2020
1 parent 168ad90 commit 09d6a11
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@ export class Delivery extends EventEmitter {
bucket: string;
basePath: string;

constructor({ bucket, basePath = '' }: { bucket: string; basePath: string }) {
constructor({
bucket,
basePath = '',
useAccelerateEndpoint = false,
}: {
bucket: string;
basePath: string;
useAccelerateEndpoint: boolean;
}) {
super();

// instantiate the s3 instance
Expand All @@ -70,6 +78,7 @@ export class Delivery extends EventEmitter {
maxSockets: 50,
}),
},
useAccelerateEndpoint,
});

this.bucket = bucket;
Expand Down

0 comments on commit 09d6a11

Please sign in to comment.