mejora de UX
This commit is contained in:
@@ -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/, '')
|
||||
|
||||
Reference in New Issue
Block a user