import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

export default defineConfig({
    plugins: [react()],
    optimizeDeps: {
        exclude: ['lucide-react'],
    },
    server: {
        proxy: {
            '/api': {
                target: 'http://192.168.0.3:3000',
                changeOrigin: true,
                secure: false
            },
            '/uploads': {
                target: 'http://192.168.0.3:3000',
                changeOrigin: true,
                secure: false
            }
        }
    },
    test: {
        globals: true,
        environment: 'jsdom',
        setupFiles: './src/setupTests.js',
    },
});
