import path from "path" import tailwindcss from "@tailwindcss/vite" import react from "@vitejs/plugin-react" import {defineConfig} from "vite" // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, server: { host: true, port: 5080, hmr: { host: "localhost", port: 5080, protocol: "ws", }, proxy: { "/api": { target: "http://localhost:8080", changeOrigin: true, }, "/ws": { target: "ws://localhost:8080", changeOrigin: true, ws: true, }, }, }, })