19 lines
		
	
	
		
			437 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			437 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| // frontend/vite.config.ts
 | |
| import { defineConfig } from 'vite'
 | |
| import react from '@vitejs/plugin-react'
 | |
| 
 | |
| export default defineConfig({
 | |
|   plugins: [react()],
 | |
|   build: {
 | |
|     outDir: 'dist',
 | |
|     manifest: true, // ¡Crucial! Le dice a Vite que genere el manifest.json
 | |
|   },
 | |
|   server: {
 | |
|     proxy: {
 | |
|       '/api': {
 | |
|         target: 'http://localhost:5217', // Ajuste el puerto si es diferente
 | |
|         changeOrigin: true,
 | |
|       },
 | |
|     }
 | |
|   }
 | |
| }) |