fix: fix bugs

This commit is contained in:
2025-02-26 01:35:37 +08:00
parent 6eba0ac564
commit 5f7bd0de5f
8 changed files with 447 additions and 440 deletions

View File

@@ -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'),
},