import { defineConfig } from 'vite'; import uni from '@dcloudio/vite-plugin-uni'; export default defineConfig({ plugins: [uni()], server: { host: "localhost", port: 5173, proxy: { "/shopify": { target: "https://3w823u8516.vicp.fun/shopify", changeOrigin: true, rewrite: (path) => path.replace(/^\/shopify/, ""), }, "/user": { target: "http://192.168.1.236:8080", changeOrigin: true, rewrite: (path) => path.replace(/^\/user/, ""), }, "/duriantreeinfo": { target: "http://192.168.1.241:9400", changeOrigin: true, rewrite: (path) => path.replace(/^\/duriantreeinfo/, ""), }, } } });