mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-27 09:23:24 +00:00
add configuration for storage
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user