import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; // En dev, l'API tourne sur :3100 ; en prod, VITE_API_URL pointe vers son sous-domaine. export default defineConfig({ plugins: [react()], server: { port: 5173, proxy: { '/api': 'http://localhost:3100', '/uploads': 'http://localhost:3100', }, }, });