Skip to content

Commit

Permalink
chore: setting objects to expire in 3 days
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrannychaseroperation committed Dec 24, 2024
1 parent 54c6b1f commit 4c6f87f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/upload-build.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4c6f87f

Please sign in to comment.