summary refs log tree commit diff
path: root/cdn
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-08-18 18:02:39 +0200
committerxnacly <matteogropp@protonmail.com>2021-08-18 18:02:39 +0200
commitb1c459bb1bc233cea6418e0d7a5bd14928e3e252 (patch)
tree5e48b7e948f335a87cb16168e9a2756c1f8d82c1 /cdn
parentfixed wrong wording in HTTPError (diff)
downloadserver-b1c459bb1bc233cea6418e0d7a5bd14928e3e252.tar.xz
moved import
Diffstat (limited to 'cdn')
-rw-r--r--cdn/src/start.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/cdn/src/start.ts b/cdn/src/start.ts
index 35a68265..132c6164 100644
--- a/cdn/src/start.ts
+++ b/cdn/src/start.ts
@@ -2,6 +2,7 @@ import path from "path";
 import dotenv from "dotenv";
 import fse from "fs-extra";
 dotenv.config();
+import { CDNServer } from "./Server";
 
 if (!process.env.STORAGE_PROVIDER) process.env.STORAGE_PROVIDER = "file";
 // TODO:nodejs path.join trailing slash windows compatible
@@ -16,8 +17,6 @@ if (process.env.STORAGE_PROVIDER === "file") {
 	fse.ensureDirSync(process.env.STORAGE_LOCATION);
 }
 
-import { CDNServer } from "./Server";
-
 const server = new CDNServer({ port: Number(process.env.PORT) || 3003 });
 server
 	.start()