feat: AWS S3 force path style

pull/1662/head
Oleksandr Prypkhan 2024-05-01 00:23:36 +03:00
parent e6d7c363de
commit b63b71a3e7
1 changed files with 5 additions and 1 deletions

View File

@ -40,6 +40,10 @@ const region =
process.env.RUNS_ON_AWS_REGION ||
process.env.AWS_REGION ||
process.env.AWS_DEFAULT_REGION;
const forcePathStyle = Boolean(
process.env.RUNS_ON_S3_FORCE_PATH_STYLE ||
process.env.AWS_S3_FORCE_PATH_STYLE
);
const uploadQueueSize = Number(process.env.UPLOAD_QUEUE_SIZE || "4");
const uploadPartSize =
@ -48,7 +52,7 @@ const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8");
const downloadPartSize =
Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024;
const s3Client = new S3Client({ region });
const s3Client = new S3Client({ region, forcePathStyle });
export function getCacheVersion(
paths: string[],