vite.config.ts
@@ -35,14 +35,14 @@ host: '0.0.0.0', port: env.VITE_PORT as unknown as number, open: JSON.parse(env.VITE_OPEN), hmr: false, hmr: true, proxy: { // '/wiai':{ // target:'http://wi.cpolar.top', // ws: true, // changeOrigin: true, // rewrite: (path) => path.replace(/^\/wiai/, ''), // } '/gitee': { target: 'https://gitee.com', ws: true, changeOrigin: true, rewrite: (path) => path.replace(/^\/gitee/, ''), }, }, }, build: {