We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bee95e7 commit 80e03b3Copy full SHA for 80e03b3
example/index.ts
@@ -8,6 +8,7 @@ Bun.serve({
8
const response = await router.serve(request, {
9
Shell: ExampleShell,
10
bootstrapModules: ["/hydrate.js"],
11
+ noStreaming: true
12
});
13
if (response) return response;
14
return new Response("Not found", {
index.tsx
@@ -111,7 +111,12 @@ export class StaticRouters {
111
}
112
);
113
if (noStreaming) {
114
- await stream.allReady;
+ return new Response(await Bun.readableStreamToBlob(stream), {
115
+ headers: {
116
+ "Content-Type": "text/html; charset=utf-8",
117
+ "Cache-Control": "no-store",
118
+ },
119
+ });
120
121
return new Response(stream, {
122
headers: {
0 commit comments