Add log
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm 2020-10-14 17:51:49 +02:00
parent 10a7c26642
commit a3a7370be0

View File

@ -17,12 +17,16 @@ if (!config.s3.secretKey) {
throw new Error("Config is missing s3.secretKey!");
}
const bucket = new S3.S3Bucket({
const s3config: S3.S3BucketConfig = {
bucket: config.s3.bucket || "deno-registry",
endpointURL: config.s3.endpoint,
accessKeyID: config.s3.accessKey,
secretKey: config.s3.secretKey,
region: config?.s3?.region || "us-east-1",
});
};
console.log("Bucket config:", s3config);
const bucket = new S3.S3Bucket(s3config);
export default bucket;