centralize config in config.ts
This commit is contained in:
parent
bf23d3198a
commit
103d1ce12c
@ -2,5 +2,8 @@
|
|||||||
export const IS_RUNNING_ON_CLOUD =
|
export const IS_RUNNING_ON_CLOUD =
|
||||||
import.meta.env.VITE_IS_DEPLOYED === "true" || false;
|
import.meta.env.VITE_IS_DEPLOYED === "true" || false;
|
||||||
|
|
||||||
|
export const WS_BACKEND_URL =
|
||||||
|
import.meta.env.VITE_WS_BACKEND_URL || "ws://127.0.0.1:7001";
|
||||||
|
|
||||||
export const HTTP_BACKEND_URL =
|
export const HTTP_BACKEND_URL =
|
||||||
import.meta.env.VITE_HTTP_BACKEND_URL || "http://127.0.0.1:7001";
|
import.meta.env.VITE_HTTP_BACKEND_URL || "http://127.0.0.1:7001";
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import toast from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
|
import { WS_BACKEND_URL } from "./config";
|
||||||
|
|
||||||
const WS_BACKEND_URL =
|
|
||||||
import.meta.env.VITE_WS_BACKEND_URL || "ws://127.0.0.1:7001";
|
|
||||||
const ERROR_MESSAGE =
|
const ERROR_MESSAGE =
|
||||||
"Error generating code. Check the Developer Console for details. Feel free to open a Github issue";
|
"Error generating code. Check the Developer Console for details. Feel free to open a Github issue";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user