fix domain connections

This commit is contained in:
2026-01-05 16:30:56 -03:00
parent 82fbc54349
commit db75d2964f
5 changed files with 22 additions and 8 deletions

View File

@@ -5,6 +5,20 @@ import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
allowedHosts: ['demo.v1ru5.cl']
allowedHosts: ['demo.v1ru5.cl'],
proxy: {
'/api': {
target: 'http://backend:3000',
changeOrigin: true
},
'/socket.io': {
target: 'http://backend:3000',
ws: true
},
'/video_feed': {
target: 'http://alpr-service:5001',
changeOrigin: true
}
}
}
})