This commit is contained in:
parent
10a7c26642
commit
a3a7370be0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user