mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 05:24:55 +03:00
chore: setting objects to expire in 3 days
This commit is contained in:
parent
54c6b1f1af
commit
4c6f87f6e7
@ -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 New Issue
Block a user