diff --git a/.env.production b/.env.production index 77301b6..329565b 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,4 @@ VITE_API_BASEURL = "http://192.168.1.10:8010" +VITE_API_PORT = "8010" VITE_FILE_API_BASEURL = ".." VITE_FORGE_BASEURL = "http://202.39.218.221:8080/file/netzero" \ No newline at end of file diff --git a/public/autodesk/res/shaders/fragment_ubo_decl.glsl b/public/autodesk/res/shaders/fragment_ubo_decl.glsl new file mode 100644 index 0000000..e69de29 diff --git a/public/autodesk/res/shaders/vertex_ubo_decl.glsl b/public/autodesk/res/shaders/vertex_ubo_decl.glsl new file mode 100644 index 0000000..e69de29 diff --git a/src/util/request.js b/src/util/request.js index 5c8e314..ebe482d 100644 --- a/src/util/request.js +++ b/src/util/request.js @@ -1,6 +1,11 @@ import useGetCookie from "@/hooks/useGetCookie"; import axios from "axios"; -const BASEURL = import.meta.env.VITE_API_BASEURL; +const BASEURL = + import.meta.env.MODE === "production" + ? `${window.location.protocol}//${window.location.hostname}:${ + import.meta.env.VITE_API_PORT + }` + : import.meta.env.VITE_API_BASEURL; const instance = axios.create({ baseURL: BASEURL,