summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-23 19:15:37 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-23 19:15:37 +0200
commitc845d19226e1a261b062784132cd5d3d70dd9a96 (patch)
tree79f4230a76a017b0045085cd332ae4bccf839e3d /src
parent:zap: add explicit types to req and res (diff)
downloadserver-c845d19226e1a261b062784132cd5d3d70dd9a96.tar.xz
:bug: fix .env file not loading
Diffstat (limited to 'src')
-rw-r--r--src/start.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/start.ts b/src/start.ts

index 72175f46..54228a5f 100644 --- a/src/start.ts +++ b/src/start.ts
@@ -1,7 +1,8 @@ -import { CDNServer } from "./Server"; import dotenv from "dotenv"; dotenv.config(); +import { CDNServer } from "./Server"; + if (process.env.STORAGE_LOCATION) { if (!process.env.STORAGE_LOCATION.startsWith("/")) { process.env.STORAGE_LOCATION = __dirname + "/../" + process.env.STORAGE_LOCATION;