update:ws代理配置
This commit is contained in:
@@ -3,7 +3,7 @@ NODE_ENV=development
|
||||
VITE_APP_ENV=development
|
||||
VITE_API_BASE_URL=/
|
||||
VITE_API_HTTP_URL=http://192.168.65.80:7100
|
||||
VITE_API_WS_BASE_URL=/wsApi
|
||||
VITE_API_WS_BASE_URL=/wsApi/simulation
|
||||
VITE_API_WS_URL=ws://192.168.65.80:7100
|
||||
VITE_API_IMAGE_PREVIEW_URL=http://192.168.65.73:7104
|
||||
VITE_API_FILE_PREVIEW_URL=http://192.168.65.161/preview/onlinePreview
|
||||
|
||||
@@ -31,6 +31,7 @@ export default defineConfig(({ mode }) => {
|
||||
'/wsApi': {
|
||||
target: env.VITE_API_WS_URL,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/wsApi/, ''),
|
||||
ws: true,
|
||||
},
|
||||
'/local7101': {
|
||||
|
||||
Reference in New Issue
Block a user