chore(rsc/example): use different url for RSC and SSR requests#975
chore(rsc/example): use different url for RSC and SSR requests#975
Conversation
…er-cf-single examples Co-authored-by: hi-ogawa <4232207+hi-ogawa@users.noreply.github.com>
Co-authored-by: hi-ogawa <4232207+hi-ogawa@users.noreply.github.com>
|
@copilot fix "ci-rsc / test"
|
Co-authored-by: hi-ogawa <4232207+hi-ogawa@users.noreply.github.com>
Reorganize and document framework conventions in request.tsx files: - Move URL_POSTFIX and HEADER_ACTION_ID constants before type definitions - Add comment explaining these are arbitrary demo conventions - Add explanatory comment for RSC response handling Applied to starter, basic, and starter-cf-single examples. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Rename createRenderRequest to createRscRenderRequest for clarity - Change parameter from URL object to string for simpler usage - Simplify call sites by removing explicit URL object creation Applied to starter, basic, and starter-cf-single examples. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Summary:
The changes make RSC/SSR request routing more explicit by using URL pathname suffix (
_.rsc) instead of relying on theacceptheader. This approach is clearer and more consistent. TheVary: acceptheader has been removed since we no longer use theacceptheader for content negotiation.Files changed: 12 files
shared.tsxfilesOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.