| 
									
										
										
										
											2025-09-03 14:30:20 -03:00
										 |  |  | // frontend/vite.config.ts
 | 
					
						
							| 
									
										
										
										
											2025-08-14 15:27:45 -03:00
										 |  |  | import { defineConfig } from 'vite' | 
					
						
							|  |  |  | import react from '@vitejs/plugin-react' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default defineConfig({ | 
					
						
							|  |  |  |   plugins: [react()], | 
					
						
							| 
									
										
										
										
											2025-09-03 13:49:35 -03:00
										 |  |  |   build: { | 
					
						
							|  |  |  |     outDir: 'dist', | 
					
						
							| 
									
										
										
										
											2025-09-03 14:30:20 -03:00
										 |  |  |     manifest: true, // ¡Crucial! Le dice a Vite que genere el manifest.json
 | 
					
						
							| 
									
										
										
										
											2025-09-03 13:49:35 -03:00
										 |  |  |   }, | 
					
						
							|  |  |  |   server: { | 
					
						
							|  |  |  |     proxy: { | 
					
						
							|  |  |  |       '/api': { | 
					
						
							| 
									
										
										
										
											2025-09-03 14:30:20 -03:00
										 |  |  |         target: 'http://localhost:5217', // Ajuste el puerto si es diferente
 | 
					
						
							| 
									
										
										
										
											2025-09-03 13:49:35 -03:00
										 |  |  |         changeOrigin: true, | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2025-09-03 14:30:20 -03:00
										 |  |  | }) |