From 4bae3909e3827e1e476fc029254865972c20df60 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Mon, 18 Oct 2021 21:10:03 +0200 Subject: :bug: fix types + prod env --- bundle/src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bundle/src') 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 -- cgit 1.5.1