Fix S3 Link Generation if S3_Domain isn't provided

This commit is contained in:
Joshua 2022-09-27 22:46:26 +02:00
parent 3b4184b551
commit b6e3270f4e

View file

@ -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