Skip to content

chore(rsc): add route-scoped action deployment example - #1348

Draft
hi-ogawa wants to merge 1 commit into
mainfrom
route-scoped-deployment
Draft

chore(rsc): add route-scoped action deployment example#1348
hi-ogawa wants to merge 1 commit into
mainfrom
route-scoped-deployment

Conversation

@hi-ogawa

Copy link
Copy Markdown
Contributor

Description

Follow-up to #1341 and related to #1337.

  • emit each discovered server-reference module as an explicit strict chunk entry
  • generate self-contained route deployment artifacts with filtered server-reference registries from one canonical build
  • dispatch pathname and explicit-ID action requests to the compatible deployment handler
  • retain development behavior and document the nested/progressive reference boundary
  • assert that deployment A excludes action B and deployment B excludes action A

Test

  • pnpm -C packages/plugin-rsc tsc
  • pnpm -C packages/plugin-rsc test-e2e action-reachability

Co-authored-by: OpenCode <noreply@opencode.ai>
@hi-ogawa
hi-ogawa marked this pull request as draft July 29, 2026 08:48
const entry = JSON.stringify(
normalizePath(path.resolve('./src/framework/entry.rsc.tsx')),
)
return `const load = () => import(${entry}); export default { '/a': load, '/b': load }`
`export default {\n${Object.keys(routes)
.map(
(route) =>
` ${JSON.stringify(route)}: () => import(${JSON.stringify(`./deployments/${routeDeploymentName(route)}/rsc/handler.js`)}),`,
@hi-ogawa hi-ogawa changed the title chore(rsc): demonstrate route-scoped action deployments chore(rsc): add route-scoped action deployment example Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants