From dde04559c130c1997fe4f8995137c93146efeef1 Mon Sep 17 00:00:00 2001 From: xnacly Date: Wed, 18 Aug 2021 18:02:39 +0200 Subject: moved import --- cdn/src/start.ts | 3 +-- 1 file changed, 1 insertion(+), 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() -- cgit 1.4.1