This commit is contained in:
2025-09-03 15:40:23 -03:00
parent 675c1f83a5
commit eee21b8d52

View File

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