From 3efcc1d039425f274b926b80395b49a8c26ecb9f Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sat, 29 Jun 2024 13:42:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E8=BF=98=E5=8E=9Fvite.config.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/vite.config.js b/vite.config.js index 8b9be8c..3f5511a 100644 --- a/vite.config.js +++ b/vite.config.js @@ -68,31 +68,31 @@ export default defineConfig({ strictPort: false, open: true, proxy: { - '/api/workflow': { - target: 'http://frp.feashow.cn:31800/', - // target: 'http://clay.frp.feashow.cn/', - // target: 'http://192.168.31.175:8000', - changeOrigin: true, - rewrite: (path) => path.replace(/^\/api/, '') - }, + // '/api/workflow': { + // // target: 'http://frp.feashow.cn:31800/', + // target: 'http://clay.frp.feashow.cn/', + // // target: 'http://192.168.31.175:8000', + // changeOrigin: true, + // rewrite: (path) => path.replace(/^\/api/, '') + // }, // '/api/admin': { // // target: 'http://frp.feashow.cn:31800/', // target: 'http://clay.frp.feashow.cn/', // // target: 'http://192.168.31.175:8000', // changeOrigin: true, - // rewrite: (path) => path.replace(/^\/summary/, '') + // rewrite: (path) => path.replace(/^\/api/, '') // }, '/api': { - target: 'http://mosr.feashow.cn', - // target: 'http://clay.frp.feashow.cn', + // target: 'http://mosr.feashow.cn/', + target: 'http://10.7.127.57:8000', changeOrigin: true, - // rewrite: (path) => path.replace(/^\/api/, '') + rewrite: (path) => path.replace(/^\/api/, '') }, - // '/api/notice-ws': { - // target: 'ws://mosr.feashow.cn/summary/notice-ws', - // ws: true, - // changeOrigin: true, - // } + '/api/notice-ws': { + target: 'ws://mosr.feashow.cn/api/notice-ws', + ws: true, + changeOrigin: true, + } } } })