fix: fix bugs
This commit is contained in:
@@ -23,19 +23,19 @@ let proxy = {};
|
||||
if (isKV) {
|
||||
proxy = {
|
||||
'/api': {
|
||||
target: 'https://envision.xiongxiao.me',
|
||||
target: 'https://kevisual.xiongxiao.me',
|
||||
changeOrigin: true,
|
||||
rewrite: (path: any) => path.replace(/^\/api/, '/api'),
|
||||
},
|
||||
'/api/router': {
|
||||
target: 'wss://envision.xiongxiao.me',
|
||||
target: 'wss://kevisual.xiongxiao.me',
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
rewriteWsOrigin: true,
|
||||
rewrite: (path: any) => path.replace(/^\/api/, '/api'),
|
||||
},
|
||||
'/resources': {
|
||||
target: 'https://envision.xiongxiao.me',
|
||||
target: 'https://kevisual.xiongxiao.me',
|
||||
changeOrigin: true,
|
||||
rewrite: (path: any) => path.replace(/^\/resources/, '/resources'),
|
||||
},
|
||||
@@ -78,7 +78,7 @@ export default defineConfig({
|
||||
rewrite: (path) => path.replace(/^\/api/, '/api'),
|
||||
},
|
||||
'/resources': {
|
||||
target: 'https://envision.xiongxiao.me',
|
||||
target: 'https://kevisual.xiongxiao.me',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/resources/, '/resources'),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user