import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from "@tailwindcss/vite"; import path from 'path'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [ react(), tailwindcss() ], resolve: { alias: { '@': path.resolve(__dirname, './src') } }, optimizeDeps: { exclude: ['lucide-react'], }, server: { proxy: { '/api': { target: 'http://localhost:8080', changeOrigin: true, secure: false, }, '/media': { target: 'http://localhost:8080', changeOrigin: true, secure: false, }, }, }, });