Skip to content

Commit 740a6f1

Browse files
frontend: vite.config.js: support streamed messages on ardupilot-manager proxy
1 parent 1a87a95 commit 740a6f1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

core/frontend/vite.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,14 @@ export default defineConfig(({ command, mode }) => {
160160
},
161161
'^/ardupilot-manager': {
162162
target: SERVER_ADDRESS,
163+
onProxyRes: (proxyRes, request, response) => {
164+
proxyRes.on('data', (data) => {
165+
response.write(data)
166+
})
167+
proxyRes.on('end', () => {
168+
response.end()
169+
})
170+
},
163171
},
164172
'^/bag': {
165173
target: SERVER_ADDRESS,

0 commit comments

Comments
 (0)