dx: avoid error "stream is not readable"
Massimo Melina committed
May 9, 2026 at 16:32 UTC
f79ae805b001c43c41585b2ffa650cf6ff037ad6
1 file changed
+1
src/serveGuiFiles.ts
+1
@@ -190,6 +190,7 @@ function serveProxied(port: string | undefined, uri: string) { // used for devel
190
let proxy: Koa.Middleware
191
import('koa-better-http-proxy').then(lib => // dynamic import to avoid having this in final distribution
192
proxy = lib.default('127.0.0.1:'+port, {
193
+ parseReqBody: false, // the dev GUI proxy serves app/assets, so avoid koa-better-http-proxy trying to reread ctx.req
194
proxyReqPathResolver: (ctx) =>
195
shouldServeApp(ctx) ? '/' : ctx.path,
196
userResDecorator(res, data, ctx) {