refactor: add option to ci/cd

This commit is contained in:
Mauricio Siu 2024-10-10 21:22:13 -06:00
parent a237c651c3
commit 629871e683
3 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
name: Build Docs & Website Docker images
name: Build Docker images
on:
push:

View File

@ -1,5 +1,3 @@
DATABASE_URL="postgres://dokploy:amukds4wi9001583845717ad2@localhost:5432/dokploy"
PORT=3000
NODE_ENV=development
IS_CLOUD="true"
SERVER_URL="http://localhost:4000"
NODE_ENV=development

View File

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