Commit 8e8c518
Add /server-components route, controller action, and view
- rsc_payload_route in routes.rb enables the Flight protocol endpoint
for client-side RSC payload fetching.
- get "server-components" route maps to pages#server_components.
- View uses prerender: false (RSC components are streamed via the
payload route, not traditional SSR prerender) and
auto_load_bundle: false (ServerComponentsPage is not in
ror_components/, so auto-discovery doesn't find its pack).
- trace: Rails.env.development? gates server-timing headers to dev.
Reference: Justin's PR 723 commits 4d09e13 + 0d8d75a.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cf394ba commit 8e8c518
3 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
0 commit comments