Simplify R2 client

This commit is contained in:
Manohar Gupta 2026-05-10 14:24:17 +05:30
parent 7d98c2c46c
commit 07381bdf90

View file

@ -17,7 +17,6 @@ function getR2() {
region: "auto",
endpoint: `https://${accountId}.r2.cloudflarestorage.com`,
credentials: { accessKeyId, secretAccessKey: secretKey },
forcePathStyle: true,
}),
bucket,
baseUrl: `https://${accountId}.r2.cloudflarestorage.com`,