summary refs log tree commit diff
path: root/bundle/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-18 21:10:03 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-18 21:10:03 +0200
commit4bae3909e3827e1e476fc029254865972c20df60 (patch)
tree491f6f6f9e223051656f835f397be4b0dbb6b6a8 /bundle/src
parent:zap: message performance (diff)
downloadserver-4bae3909e3827e1e476fc029254865972c20df60.tar.xz
:bug: fix types + prod env
Diffstat (limited to 'bundle/src')
-rw-r--r--bundle/src/Server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts

index f29cd649..e461ec5f 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts
@@ -12,7 +12,7 @@ import { Config, initDatabase } from "@fosscord/util"; const app = express(); const server = http.createServer(); const port = Number(process.env.PORT) || 3001; -const production = true; +const production = process.env.NODE_ENV == "development" ? false : true; server.on("request", app); // @ts-ignore