import path from 'path' import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], resolve: { alias: { // Use `@/` as an absolute import root pointing to src/. // e.g. `import { useAuth } from '@/context/AuthContext'` '@': path.resolve(__dirname, './src'), }, }, server: { host: true, port: 8080, proxy: { '/api': { target: 'http://localhost:8214', changeOrigin: true, }, }, }, preview: { host: true, port: 8080, } })