This commit is contained in:
		| @ -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; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Fabian Stamm
					Fabian Stamm