Replace polling with websocket live sync
This commit is contained in:
@@ -9,6 +9,11 @@ export default defineConfig({
|
||||
target: process.env.VITE_API_PROXY_TARGET ?? 'http://127.0.0.1:3000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/ws': {
|
||||
target: process.env.VITE_API_PROXY_TARGET ?? 'http://127.0.0.1:3000',
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
test: {
|
||||
|
||||
Reference in New Issue
Block a user