fix: handle shell errors when resuming Node streams (#94668)
The Node resume adapter returned its stream without observing whether React produced a resumable HTML shell. When an empty prerendered shell resumed into a redirect, React reported an onShellError, but Next.js continued into Flight injection and waited forever for an HTML chunk that would never arrive. Wire the resume shell callbacks into a promise and await the result after starting the pipe. Shell errors now propagate into the existing app-render recovery path, matching the Web stream behavior and producing a complete error document containing the redirect signal.
Showing
Please
register
or
sign in
to comment