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

@@ -62,6 +62,11 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Add Enviroment Variables
run: |
echo "NODE_ENV=production" >> .env
echo "IS_CLOUD=true" >> .env
- name: Build and push Docker image
uses: docker/build-push-action@v4

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 });