add default backend URL as fallback if the user hasn't set up the env file
This commit is contained in:
parent
1420bb8586
commit
903385e501
@ -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";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user