Try 1550
This commit is contained in:
@@ -1,7 +1,22 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
// https://vite.dev/config/
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
})
|
||||
server: {
|
||||
proxy: {
|
||||
// Redirige cualquier petición que empiece con '/api' al backend
|
||||
'/api': {
|
||||
target: 'http://localhost:5174', // <-- Usa el puerto HTTP del backend
|
||||
changeOrigin: true,
|
||||
},
|
||||
// Redirige cualquier petición a '/titularesHub' al backend (para SignalR)
|
||||
'/titularesHub': {
|
||||
target: 'http://localhost:5174', // <-- Usa el mismo puerto
|
||||
ws: true, // <-- Habilita el proxy para WebSockets (crucial para SignalR)
|
||||
changeOrigin: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user