({ key }: { key: string })
| 103 | }; |
| 104 | |
| 105 | export const createPresignedUrl = ({ key }: { key: string }) => { |
| 106 | const command = new PutObjectCommand({ Bucket, Key: key }); |
| 107 | // @ts-ignore |
| 108 | return getSignedUrl(s3Client, command, { expiresIn: 1800 }); |
| 109 | }; |