summary refs log tree commit diff
path: root/cdn
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-08-18 18:17:52 +0200
committerxnacly <matteogropp@protonmail.com>2021-08-18 18:17:52 +0200
commitaf20ab46e2726e74e87a5ac43cae790565ba4641 (patch)
treecb857fb6979853ff80c391ec085fe2535297d583 /cdn
parentadded unittests for attachments [post] (diff)
downloadserver-af20ab46e2726e74e87a5ac43cae790565ba4641.tar.xz
revert b1c459b
Diffstat (limited to 'cdn')
-rw-r--r--cdn/src/start.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdn/src/start.ts b/cdn/src/start.ts
index 132c6164..2a449130 100644
--- a/cdn/src/start.ts
+++ b/cdn/src/start.ts
@@ -2,7 +2,6 @@ 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
@@ -17,6 +16,7 @@ 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()