diff --git a/registry/src/s3.ts b/registry/src/s3.ts index 384daca..aeb1f0e 100644 --- a/registry/src/s3.ts +++ b/registry/src/s3.ts @@ -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;