This commit is contained in:
Pengxiansen
2025-02-14 15:47:00 +08:00
parent 9c3665d529
commit 1904d07014
15 changed files with 1557 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ const path = require("path");
export default defineConfig(({ command, mode }) =>
({
host: "192.158.3.51",
// host: "192.158.3.51",
base: loadEnv(mode, process.cwd()).VITE_BASE,
build: {
outDir: loadEnv(mode, process.cwd()).VITE_OUTPUT_DIR,
@@ -41,8 +41,13 @@ export default defineConfig(({ command, mode }) =>
]
},
server: {
host: "192.168.3.51",
// host: "192.168.3.51",
proxy: {
"/professional": {
// target: 'http://192.168.237.141:32002',
target: 'http://192.168.150.97:32002',
changeOrigin: true,
},
"/file/upload": {
target: loadEnv(mode, process.cwd()).VITE_PROXY_URL,
changeOrigin: true,