Fix R2 endpoint with bucket path
This commit is contained in:
parent
5de4294919
commit
864ecc2587
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ function getR2() {
|
||||||
return {
|
return {
|
||||||
client: new S3Client({
|
client: new S3Client({
|
||||||
region: "auto",
|
region: "auto",
|
||||||
endpoint: `https://${accountId}.r2.cloudflarestorage.com`,
|
endpoint: `https://${accountId}.r2.cloudflarestorage.com/${bucket}`,
|
||||||
credentials: { accessKeyId, secretAccessKey: secretKey },
|
credentials: { accessKeyId, secretAccessKey: secretKey },
|
||||||
}),
|
}),
|
||||||
bucket,
|
bucket,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue