mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 11:12:07 +00:00
chore: setting objects to expire in 3 days
This commit is contained in:
parent
54c6b1f1af
commit
4c6f87f6e7
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue