From 63add375053268bd821f89a975b4f38340d817b8 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Sun, 19 Nov 2023 21:41:38 -0500 Subject: [PATCH] update more values to 7001 --- docker-compose.yml | 2 +- frontend/.env.example | 1 - frontend/src/generateCode.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 87f0a66..3b3bcec 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: # or # environment: - #- BACKEND_PORT=7000 # if you change the port, make sure to also change the VITE_WS_BACKEND_URL at frontend/.env.local + #- BACKEND_PORT=7001 # if you change the port, make sure to also change the VITE_WS_BACKEND_URL at frontend/.env.local # - OPENAI_API_KEY=your_openai_api_key ports: diff --git a/frontend/.env.example b/frontend/.env.example index 43a8814..c29bfd3 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,2 +1 @@ -# example for change the backend port to 7001 to deal with issue: https://developer.apple.com/forums/thread/682332 VITE_WS_BACKEND_URL=ws://127.0.0.1:7001 diff --git a/frontend/src/generateCode.ts b/frontend/src/generateCode.ts index 997bd45..77edf07 100644 --- a/frontend/src/generateCode.ts +++ b/frontend/src/generateCode.ts @@ -1,7 +1,7 @@ import toast from "react-hot-toast"; const WS_BACKEND_URL = - import.meta.env.VITE_WS_BACKEND_URL || "ws://127.0.0.1:7000"; + import.meta.env.VITE_WS_BACKEND_URL || "ws://127.0.0.1:7001"; const ERROR_MESSAGE = "Error generating code. Check the Developer Console for details. Feel free to open a Github ticket";