(req)
| 65 | } |
| 66 | |
| 67 | function getDebugChannel(req) { |
| 68 | if (process.env.NODE_ENV !== 'development') { |
| 69 | return undefined; |
| 70 | } |
| 71 | const requestId = req.get('rsc-request-id'); |
| 72 | if (!requestId) { |
| 73 | return undefined; |
| 74 | } |
| 75 | return activeDebugChannels.get(requestId); |
| 76 | } |
| 77 | |
| 78 | async function renderApp(res, returnValue, formState, noCache, debugChannel) { |
| 79 | const {renderToPipeableStream} = await import( |