Files
usa/vite.config.ts
2026-03-01 19:23:48 +08:00

19 lines
406 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': { target: 'http://localhost:3001', changeOrigin: true },
'/ws': { target: 'ws://localhost:3001', ws: true },
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
})