add configuration for storage

This commit is contained in:
tdurieux committed 2021-08-13 08:26:27 +02:00
1 parent 38a189e980
commit b36cad0cbc
2 files changed
+10 -1

No files matched your search

+2 -1
View File
@@ -1,7 +1,8 @@
import config from "../config";
import FileSystem from "./storage/FileSystem";
import S3Storage from "./storage/S3";
import { StorageBase } from "./types";
const storage = new FileSystem();
const storage = config.STORAGE == "s3" ? new S3Storage() : new FileSystem();
export default storage as StorageBase;