import { defineConfig } from 'vite'; export default defineConfig({ root: './src', build: { outDir: '../dist', minify: false, emptyOutDir: true, sourcemap: true }, server: { proxy: { "/ws": { target: "http://localhost:10002", changeOrigin: true, ws: true }, "/login": { target: "http://localhost:10002", changeOrigin: true }, "/profile": { target: "http://localhost:10002", changeOrigin: true }, "/api": { target: "http://localhost:10002", changeOrigin: true } }, host: true, allowedHosts: ['sam.local'], } });