diff --git a/frontend/src/generateCode.ts b/frontend/src/generateCode.ts index 787249b..c8e4ec9 100644 --- a/frontend/src/generateCode.ts +++ b/frontend/src/generateCode.ts @@ -1,6 +1,7 @@ import toast from "react-hot-toast"; -const WS_BACKEND_URL = import.meta.env.VITE_WS_BACKEND_URL; +const WS_BACKEND_URL = + import.meta.env.VITE_WS_BACKEND_URL || "ws://127.0.0.1:7000"; const ERROR_MESSAGE = "Error generating code. Check the Developer Console for details. Feel free to open a Github ticket";