From b6e3270f4ee4795b870a7ad285a18b34a7130fc2 Mon Sep 17 00:00:00 2001 From: Joshua Date: Tue, 27 Sep 2022 22:46:26 +0200 Subject: [PATCH] Fix S3 Link Generation if S3_Domain isn't provided --- scripts/s3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/s3.ts b/scripts/s3.ts index ff198db..fc64170 100644 --- a/scripts/s3.ts +++ b/scripts/s3.ts @@ -22,7 +22,7 @@ const s3 = new S3({ let DreamlandBucket = s3.getBucket(Deno.env.get("S3_BUCKET") || "dreamland-assets.lio.systems") -const bucketDomain = Deno.env.get("S3_DOMAIN") || Deno.env.get("S3_ENDPOINT_URL") +const bucketDomain = Deno.env.get("S3_DOMAIN") || `${Deno.env.get("S3_ENDPOINT_URL")}/${Deno.env.get("S3_BUCKET")}` const list = DreamlandBucket.listAllObjects({ batchSize: 5