Browse Source

feat: 更新本地代理端口

chenhao 2 years ago
parent
commit
e850e10f9b
1 changed files with 2 additions and 5 deletions
  1. 2 5
      server.config.ts

+ 2 - 5
server.config.ts

@@ -2,11 +2,8 @@ import type { ServerOptions } from 'vite'
 
 const server: ServerOptions = {
   proxy: {
-    '^/?api/': {
-      target: 'http://192.168.10.41:7201',
-    },
-    '^/?file/': {
-      target: 'http://192.168.10.41:7200',
+    '^/?(api|file)/': {
+      target: 'http://192.168.10.41:8200',
     },
   },
 }