import {GetObjectCommand, ListObjectsV2Command, ListObjectsV2CommandOutput, S3Client} from "@aws-sdk/client-s3";
// Create client
const S3: S3Client = new S3Client({
region: "auto",
endpoint: `https://${accountid}.r2.cloudflarestorage.com`,
credentials: {
accessKeyId: env.AWS_ACCESS_KEY_ID,
secretAccessKey: env.AWS_SECRET_ACCESS_KEY,
},
});
import {GetObjectCommand, ListObjectsV2Command, ListObjectsV2CommandOutput, S3Client} from "@aws-sdk/client-s3";
// Create client
const S3: S3Client = new S3Client({
region: "auto",
endpoint: `https://${accountid}.r2.cloudflarestorage.com`,
credentials: {
accessKeyId: env.AWS_ACCESS_KEY_ID,
secretAccessKey: env.AWS_SECRET_ACCESS_KEY,
},
});