Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

update more values to 7001

Abi Raja63add3750532
diff --git a/docker-compose.yml b/docker-compose.yml
index 87f0a667..3b3bcec7 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 43a8814c..c29bfd39 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 997bd452..77edf07c 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";