mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-07-06 23:21:40 +08:00
✨ Feature: migrate from aws-sdk v2 to v3
This commit is contained in:
@@ -29,8 +29,8 @@ const uploadFile = async () => {
|
||||
secretAccessKey: SECRET_KEY
|
||||
},
|
||||
endpoint: `https://${ACCOUNT_ID}.r2.cloudflarestorage.com`,
|
||||
sslEnabled: true,
|
||||
region: 'us-east-1'
|
||||
tls: true,
|
||||
region: 'auto'
|
||||
}
|
||||
const client = new S3Client.S3Client(options)
|
||||
const parallelUploads3 = new Upload.Upload({
|
||||
|
||||
Reference in New Issue
Block a user