refacctor: add missing envs

This commit is contained in:
Mauricio Siu
2024-10-10 21:32:27 -06:00
parent 629871e683
commit aaa4ca297d
2 changed files with 6 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ import {
setupTerminalWebSocketServer,
} from "./wss/terminal";
config({ path: ".env", override: true });
config({ path: ".env" });
const PORT = Number.parseInt(process.env.PORT || "3000", 10);
const dev = process.env.NODE_ENV !== "production";
const app = next({ dev });