- updated main endpoint end point and added flexibility for camera navigation
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
export const CAMBASE = import.meta.env.VITE_BASEURL;
|
export const cambase = import.meta.env.VITE_BASEURL;
|
||||||
|
|
||||||
export const CAMBASE_WS = import.meta.env.VITE_BASE_WS;
|
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");
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { tanstackRouter } from "@tanstack/router-plugin/vite";
|
|||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: "/bayiq",
|
||||||
plugins: [
|
plugins: [
|
||||||
tanstackRouter({
|
tanstackRouter({
|
||||||
target: "react",
|
target: "react",
|
||||||
|
|||||||
Reference in New Issue
Block a user