Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
add default backend URL as fallback if the user hasn't set up the env file
Abi Raja903385e501ec
diff --git a/frontend/src/generateCode.ts b/frontend/src/generateCode.tsindex 787249bb..c8e4ec94 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";