fix(web): wrap HTMLBundle in new Response constructor for fetch compatibility

This commit is contained in:
yiling
2026-06-03 23:34:26 +08:00
parent 05f6069af7
commit fe51088f2a
+1 -1
View File
@@ -65,7 +65,7 @@ const server = Bun.serve({
return new Response(Bun.file(publicFilePath))
}
return index as unknown as Response
return new Response(index as unknown as BodyInit)
},
development: process.env.NODE_ENV !== 'production',
})