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

@@ -63,6 +63,11 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} 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 - name: Build and push Docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:

View File

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