mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +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,
|
Bucket: process.env.S3_BUILDS_BUCKET_NAME,
|
||||||
Key: fileName,
|
Key: fileName,
|
||||||
Body: fs.createReadStream(path.resolve(dist, file)),
|
Body: fs.createReadStream(path.resolve(dist, file)),
|
||||||
|
// 3 days
|
||||||
|
Expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 3),
|
||||||
});
|
});
|
||||||
|
|
||||||
await s3.send(command);
|
await s3.send(command);
|
||||||
|
Loading…
Reference in New Issue
Block a user