add default backend URL as fallback if the user hasn't set up the env file

This commit is contained in:
Abi Raja 2023-11-15 11:33:41 -05:00
parent 1420bb8586
commit 903385e501

View File

@ -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";