update more values to 7001

This commit is contained in:
Abi Raja 2023-11-19 21:41:38 -05:00
parent 4ae04553df
commit 63add37505
3 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,7 @@ services:
# or # or
# environment: # 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 # - OPENAI_API_KEY=your_openai_api_key
ports: ports:

View File

@ -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 VITE_WS_BACKEND_URL=ws://127.0.0.1:7001

View File

@ -1,7 +1,7 @@
import toast from "react-hot-toast"; import toast from "react-hot-toast";
const WS_BACKEND_URL = 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 = const ERROR_MESSAGE =
"Error generating code. Check the Developer Console for details. Feel free to open a Github ticket"; "Error generating code. Check the Developer Console for details. Feel free to open a Github ticket";