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