diff --git a/services/app-web/src/s3/s3Amplify.ts b/services/app-web/src/s3/s3Amplify.ts index ba7649f5dc..0b5fa71bbd 100644 --- a/services/app-web/src/s3/s3Amplify.ts +++ b/services/app-web/src/s3/s3Amplify.ts @@ -153,6 +153,7 @@ function newAmplifyS3Client(bucketConfig: S3BucketConfigType): S3ClientT { ): Promise => { const result = await Storage.get(key, { bucket: bucketConfig[bucket], + expires: 3600, }) if (typeof result === 'string') { return result @@ -189,7 +190,7 @@ function newAmplifyS3Client(bucketConfig: S3BucketConfigType): S3ClientT { return error } - return await Storage.get(filename) + return await Storage.get(filename, { expires: 3600 }) }, } }