From 358bf873296d4d4e84611d3f3d5ae48eabfc8ad6 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 10 Jul 2021 19:02:32 +0200 Subject: :zap: cache assets --- src/start.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/start.ts') diff --git a/src/start.ts b/src/start.ts index 54228a5f..822a749f 100644 --- a/src/start.ts +++ b/src/start.ts @@ -7,7 +7,10 @@ if (process.env.STORAGE_LOCATION) { if (!process.env.STORAGE_LOCATION.startsWith("/")) { process.env.STORAGE_LOCATION = __dirname + "/../" + process.env.STORAGE_LOCATION; } -} else process.env.STORAGE_LOCATION = __dirname + "/../files/"; +} else { + process.env.STORAGE_LOCATION = __dirname + "/../files/"; + process.env.STORAGE_PROVIDER = "file"; +} const server = new CDNServer({ port: Number(process.env.PORT) || 3003 }); server -- cgit 1.5.1