fix: s3 integration + custom s3 (minio) support

This commit is contained in:
Tomáš Hruška
2023-11-09 11:41:29 +01:00
parent 946eed3773
commit 836dc10c2b
8 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ async function emptyS3Directory(bucket: string, dir: string) {
export default async function removeFolder({ filePath }: { filePath: string }) {
if (s3Client) {
try {
await emptyS3Directory(process.env.BUCKET_NAME as string, filePath);
await emptyS3Directory(process.env.SPACES_BUCKET_NAME as string, filePath);
} catch (err) {
console.log("Error", err);
}