mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 04:42:57 +00:00
Use meta bucket in R2 bucket resolution
This commit is contained in:
1 parent
88c9041716
commit
ad0f58e328
1 file changed
+2
-1
@@ -475,7 +475,8 @@ class R2Service {
|
||||
|
||||
// We no longer support automated bucket creation or domain management via API token.
|
||||
// We assume the user has created the bucket with the correct name and configured the public domain.
|
||||
const bucketName = settings.bucket || sanitizeBucketName(npub);
|
||||
const bucketName =
|
||||
settings.bucket || settings.meta?.bucket || sanitizeBucketName(npub);
|
||||
|
||||
// We attempt to ensure the bucket exists and CORS is set up using the S3 keys if possible.
|
||||
if (accessKeyId && secretAccessKey) {
|
||||
|
||||
Reference in new issue
Block a user