mejora de UX

This commit is contained in:
2025-08-16 18:12:05 -06:00
parent c1c2a70217
commit 7cee57f135
3 changed files with 74 additions and 3 deletions

View File

@@ -12,11 +12,11 @@ export default defineConfig({
},
proxy: {
'/api': {
target: process.env.VITE_DEV_API_PROXY_TARGET || 'http://localhost:2567',
target: process.env.VITE_DEV_API_PROXY_TARGET || 'http://localhost:3000',
changeOrigin: true
},
'/ws': {
target: process.env.VITE_DEV_WS_PROXY_TARGET || 'http://localhost:2567',
target: process.env.VITE_DEV_WS_PROXY_TARGET || 'http://localhost:3000',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(/^\/ws/, '')