import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import process from 'node:process'; import { fileURLToPath } from 'node:url'; export default defineConfig({ root: fileURLToPath(new URL('.', import.meta.url)), plugins: [react()], server: { host: '127.0.0.1', port: 5179, strictPort: true, proxy: { '/api': { target: process.env.ASSISTANT_API_TARGET || 'http://127.0.0.1:8810', changeOrigin: false } }, }, build: { outDir: 'dist', emptyOutDir: true }, });