mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-07 01:46:45 +08:00
提交
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user