From 1b0e8054f43cc7cc15c789b803ddded8658f3595 Mon Sep 17 00:00:00 2001 From: creations Date: Sun, 5 Jan 2025 21:47:27 -0500 Subject: [PATCH] edit env --- config/environment.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/environment.ts b/config/environment.ts index 4c4b59a..485d3c7 100644 --- a/config/environment.ts +++ b/config/environment.ts @@ -11,7 +11,9 @@ try { export const environment: Environment = { port: parseInt(process.env.PORT || "6600", 10), host: process.env.HOST || "0.0.0.0", - development: process.env.NODE_ENV === "development", + development: + process.env.NODE_ENV === "development" || + process.argv.includes("--dev"), }; export const redisConfig: RedisConfig = {