Skip to content

Conversation

@hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Aug 31, 2025

Description

Summary

  • port "single worker" setup from examples/cf-single-worker to examples/react-router, namely enable loadModuleDevProxy.
  • update react-router entry.ssr to provide generateHTML, which works on "serializable" values
    • generateHTML: (url: string, headers: Headers, rscResponse: Response) => Promise<Response>
  • update utils/rpc.ts to encode/decode Headers and Response via custom turbo-stream plugins

@hi-ogawa hi-ogawa force-pushed the 08-31-feat_rsc_react-router_cloudflare_single_worker_example branch from d3ec5b9 to b34c086 Compare August 31, 2025 07:18
@hi-ogawa hi-ogawa marked this pull request as ready for review August 31, 2025 08:05
@ivogt
Copy link

ivogt commented Oct 14, 2025

@hi-ogawa I wonder if latest RR that supports framework mode can have example like this one too?

@ivogt
Copy link

ivogt commented Oct 23, 2025

I just wanted to mention that I tried this one. Works compiled but not in dev when @clouldfware/vite-plugin is used. It doesn't say an error and just prints <..redacted..>

@hi-ogawa
Copy link
Contributor Author

@ivogt Hey, Sorry, I missed the message. To answer the question, no. RR framework plugin needs a change to support a setup like this. You can probably raise a feature request on react router repo.

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.

3 participants