summary refs log tree commit diff
path: root/cdn/src/util/Storage.ts
diff options
context:
space:
mode:
authorHayden Young <hi@hbjy.dev>2021-10-14 23:15:03 +0100
committerHayden Young <hi@hbjy.dev>2021-10-14 23:15:03 +0100
commit0e5172bc5f5c42b24a60b5d49e5e03812be6f9ac (patch)
tree1debf5930eca6bc1765e65fcebb4ec512995aa7c /cdn/src/util/Storage.ts
parentchore: remove unused import (diff)
downloadserver-0e5172bc5f5c42b24a60b5d49e5e03812be6f9ac.tar.xz
fix: don't set location by default
Diffstat (limited to 'cdn/src/util/Storage.ts')
-rw-r--r--cdn/src/util/Storage.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/cdn/src/util/Storage.ts b/cdn/src/util/Storage.ts

index acef9df3..3332f21c 100644 --- a/cdn/src/util/Storage.ts +++ b/cdn/src/util/Storage.ts
@@ -45,13 +45,13 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) { let location = process.env.STORAGE_LOCATION; if (!location) { - console.warn(`[CDN] STORAGE_LOCATION unconfigured for S3 provider, defaulting to '/'...`); - location = "/"; + console.warn(`[CDN] STORAGE_LOCATION unconfigured for S3 provider, defaulting to the bucket root...`); + location = undefined; } const client = new S3({ region }); - storage = new S3Storage(client, location, bucket); + storage = new S3Storage(client, bucket, location); } export { storage };