Skip to content

Commit fd9faf1

Browse files
ihabadhamclaude
andcommitted
Enable replayServerAsyncOperationLogs on Pro Node renderer
Without this flag, console.* calls made inside async Server Components are captured by the renderer's per-request sharedConsoleHistory but not replayed back to Rails' logs. Any error-path logging from an async component (for example, a catch block that console.errors before returning an error fallback div) disappears, making runtime failures invisible. The generator template, RORP spec dummy, and every maintained RSC demo set this to true for the same reason. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1ac1b27 commit fd9faf1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

renderer/node-renderer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ const config = {
4747
// Flight-protocol yielding — with it stubbed, the RSC stream silently
4848
// emits zero chunks and hangs until the Fastify idle timeout fires.
4949
stubTimers: false,
50+
// Surface console output from async server-component code. Without this,
51+
// `console.error` calls from within async Server Components (e.g.
52+
// CommentsFeed's catch block) are silently dropped by the VM, making
53+
// runtime failures in RSC components invisible.
54+
replayServerAsyncOperationLogs: true,
5055
};
5156

5257
reactOnRailsProNodeRenderer(config);

0 commit comments

Comments
 (0)