From 4c6f87f6e7c3dbb4e607f350148b7ff7441ed3fa Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Tue, 24 Dec 2024 04:33:24 +0000 Subject: [PATCH] chore: setting objects to expire in 3 days --- scripts/upload-build.cjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upload-build.cjs b/scripts/upload-build.cjs index c00b565a2..37fcd7a1c 100644 --- a/scripts/upload-build.cjs +++ b/scripts/upload-build.cjs @@ -36,6 +36,8 @@ fs.readdir(dist, async (err, files) => { Bucket: process.env.S3_BUILDS_BUCKET_NAME, Key: fileName, Body: fs.createReadStream(path.resolve(dist, file)), + // 3 days + Expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 3), }); await s3.send(command);