Skip to content

Commit bd13733

Browse files
Bump + not sure how SSE works
1 parent 73560ae commit bd13733

File tree

3 files changed

+56
-256
lines changed

3 files changed

+56
-256
lines changed

packages/examples/workflow/src/app/api/signup/[runId]/status/route.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,12 @@ interface RouteParams {
2121
export async function GET(request: Request, { params }: RouteParams) {
2222
const { runId } = await params;
2323
const run = getRun(runId);
24-
return new NextResponse(run.getReadable({startIndex: 0}), {status: 200})
24+
return new NextResponse(run.getReadable({startIndex: 0}), {
25+
status: 200,
26+
headers: {
27+
'Content-Type': 'text/event-stream',
28+
'Cache-Control': 'no-cache',
29+
'Connection': 'keep-alive',
30+
}
31+
})
2532
}

0 commit comments

Comments
 (0)