From 0a8ea0f20277a1fc4bdeaafaea8a7682fe650697 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sat, 13 Nov 2021 09:31:17 +0000 Subject: [PATCH] hahahahahaHahahahahaHahahaHAHahAHAHAhhahahahaHahahahaAHAHAHAHAHAHAHA --- server/src/server/server.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/server/server.ts b/server/src/server/server.ts index 9b38f76bd..b49868fa1 100644 --- a/server/src/server/server.ts +++ b/server/src/server/server.ts @@ -120,13 +120,13 @@ if ( `Running LOCAL_FILESYSTEM OWN_CDN in production. Consider making a separate process handle your CDN for performance.`, { bootInfo: true } ); - } else if (Environment.nodeEnv !== "test") { - logger.info(`Running own CDN at ${ServerConfig.CDN_CONFIG.SAVE_LOCATION.LOCATION}.`, { - bootInfo: true, - }); } - app.use("/cdn", express.static("/home/zkldi/Repos/Projects/Tachi/tachi-server/test-cdn")); + logger.info(`Running own CDN at ${ServerConfig.CDN_CONFIG.SAVE_LOCATION.LOCATION}.`, { + bootInfo: true, + }); + + app.use("/cdn", express.static(ServerConfig.CDN_CONFIG.SAVE_LOCATION.LOCATION)); app.get("/cdn/*", (req, res) => res.status(404).send("No content here.")); }