2025-12-11 10:52:13 +00:00
|
|
|
export const cambase = import.meta.env.VITE_BASEURL;
|
2025-12-10 10:30:32 +00:00
|
|
|
|
2025-12-11 10:52:13 +00:00
|
|
|
export const CAMBASEWS = import.meta.env.VITE_BASE_WS;
|
|
|
|
|
|
|
|
|
|
const environment = import.meta.env.MODE;
|
|
|
|
|
|
|
|
|
|
export const CAMBASE = environment === "development" ? cambase : window.location.origin;
|
|
|
|
|
|
|
|
|
|
export const CAMBASE_WS = environment === "development" ? CAMBASEWS : window.location.origin.replace(/^http/, "ws");
|