import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import tsconfigPaths from "vite-tsconfig-paths"; import tailwindcss from "@tailwindcss/vite"; export default defineConfig({ server: { allowedHosts: ["localhost", "trading.evoagents.cn","www.evoagents.cn"], proxy: { '/api': { target: 'http://localhost:8000', changeOrigin: true }, '/ws': { target: 'ws://localhost:8765', ws: true } } }, plugins: [react(), tsconfigPaths(),tailwindcss()], test: { environment: "jsdom" }, preview: { host: "0.0.0.0", port: 4173 }, });