usuarios pre configurados
This commit is contained in:
@@ -6,15 +6,21 @@ export default defineConfig({
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 3004,
|
||||
allowedHosts: ['z590.interno.com'],
|
||||
allowedHosts: ['z590.interno.com', 'snatchgame.interno.com'],
|
||||
cors: {
|
||||
origin: ['http://localhost:3004', 'http://z590.interno.com:3004']
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:3000',
|
||||
target: process.env.VITE_DEV_API_PROXY_TARGET || 'http://localhost:3000',
|
||||
changeOrigin: true
|
||||
},
|
||||
'/ws': {
|
||||
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