[Flight] Fix debug channel flag in Node.js server renderToPipeableStream (#35724)

## Summary

- Fixes the `createRequest` call in `renderToPipeableStream` to pass
`debugChannelReadable !== undefined` instead of `debugChannel !==
undefined` in the turbopack, esm, and parcel Node.js server
implementations
- The webpack version already had the correct check; this brings the
other bundler implementations in line

The bug was introduced in #33754. With `debugChannel !== undefined`, the
server could signal that debug info should be emitted even when only a
write-only debug channel is provided (no readable side), potentially
causing the client to block forever waiting for debug data that never
arrives.
This commit is contained in:
Jimmy Lai
2026-02-08 11:14:15 -08:00
committed by GitHub
parent 65db1000b9
commit 2dd9b7cf76
3 changed files with 3 additions and 3 deletions

View File

@@ -187,7 +187,7 @@ function renderToPipeableStream(
options ? options.startTime : undefined,
__DEV__ && options ? options.environmentName : undefined,
__DEV__ && options ? options.filterStackFrame : undefined,
debugChannel !== undefined,
debugChannelReadable !== undefined,
);
let hasStartedFlowing = false;
startWork(request);

View File

@@ -199,7 +199,7 @@ export function renderToPipeableStream(
options ? options.startTime : undefined,
__DEV__ && options ? options.environmentName : undefined,
__DEV__ && options ? options.filterStackFrame : undefined,
debugChannel !== undefined,
debugChannelReadable !== undefined,
);
let hasStartedFlowing = false;
startWork(request);

View File

@@ -193,7 +193,7 @@ function renderToPipeableStream(
options ? options.startTime : undefined,
__DEV__ && options ? options.environmentName : undefined,
__DEV__ && options ? options.filterStackFrame : undefined,
debugChannel !== undefined,
debugChannelReadable !== undefined,
);
let hasStartedFlowing = false;
startWork(request);