diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cdn/util/FileStorage.ts | 2 | ||||
-rw-r--r-- | src/cdn/util/Storage.ts | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cdn/util/FileStorage.ts b/src/cdn/util/FileStorage.ts index 955c570b..0e31a50e 100644 --- a/src/cdn/util/FileStorage.ts +++ b/src/cdn/util/FileStorage.ts @@ -1,6 +1,6 @@ import { Storage } from "./Storage"; import fs from "fs"; -import { join, relative, dirname } from "path"; +import { join, dirname } from "path"; import "missing-native-js-functions"; import { Readable } from "stream"; import ExifTransformer from "exif-be-gone"; diff --git a/src/cdn/util/Storage.ts b/src/cdn/util/Storage.ts index 04fbacca..d040f50b 100644 --- a/src/cdn/util/Storage.ts +++ b/src/cdn/util/Storage.ts @@ -21,7 +21,8 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) { } else { location = path.join(process.cwd(), "files"); } - console.log(`[CDN] storage location: ${bgCyan(`${black(location)}`)}`); + // TODO: move this to some start func, so it doesn't run when server is imported + //console.log(`[CDN] storage location: ${bgCyan(`${black(location)}`)}`); if (!fs.existsSync(location)) fs.mkdirSync(location); process.env.STORAGE_LOCATION = location; |