diff --git a/.env b/.env index 1319dabe..6b27d741 100644 --- a/.env +++ b/.env @@ -6,4 +6,4 @@ VITE_DEV_PATH = 'http://192.168.0.34:8024' # VITE_DEV_PATH = 'http://192.168.0.120:3001' # production path -# VITE_PRO_PATH = 'http://192.168.0.34:11887' +VITE_PRO_PATH = 'http://192.168.0.34:11887' diff --git a/proxyConfig.ts b/proxyConfig.ts index a70994f9..e112defa 100644 --- a/proxyConfig.ts +++ b/proxyConfig.ts @@ -45,6 +45,7 @@ const prodProxy = (mode:any) => { '/svgConfig/customLargeScreen/data/file': { // @ts-ignore target: loadEnv(mode, process.cwd()).VITE_PRO_PATH, + // target: window.location.href, changeOrigin: true, rewrite: (path:any) => { console.log(path.replace(new RegExp(`^/svgConfig/customLargeScreen/data/file`), '/data/file'))