Fix S3 Link Generation if S3_Domain isn't provided
This commit is contained in:
parent
3b4184b551
commit
b6e3270f4e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue