ushare/frontend/vite.config.ts
loveuer 3053394f03 wip: 0.2.1
1. websocket 连接,退出 优化
  2. 基本页面
2025-05-15 17:39:56 +08:00

25 lines
508 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://127.0.0.1:9119',
changeOrigin: true
},
'/api/ulocal/ws': {
target: 'ws://127.0.0.1:9119',
rewriteWsOrigin: true,
ws: true,
},
'/ushare': {
target: 'http://127.0.0.1:9119',
changeOrigin: true
},
}
}
})