Explorar el Código

feat: 更新本地代理端口

chenhao hace 2 años
padre
commit
e850e10f9b
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  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',
     },
   },
 }