-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prerender fails on build for cloudflare environment #60
Comments
Thanks for reporting! I think I know why: for Cloudflare, React Router creates a bundle including Hono and React Router, while Node and Bun adapters create a separate file. I will try to find a fix asap! |
So, I'm not sure how to solve that. I can't even pre-render a Cloudflare project without react-router-hono-server. Cloudflare needs a
If we omit this file, it works but then wrangler can't start:
That's because by default RR will add its own version of |
Ok, maybe I found a way: npm i https://pkg.pr.new/rphlmr/react-router-hono-server@63 |
Thanks for investigating and fixing this! I don’t have time to test it right now, but I’ll check it out in a few days. |
Thank you for creating and maintaining this excellent package.
I encountered build errors when attempting to create an app with pre-rendered pages for the Cloudflare environment.
Steps to reproduce
examples/cloudflare/simple
in the package's repository)npm install
thennpm run build
Observed errors
in v2.6.4, I got this error:
I also tried in v2.5.0, which ended up in another error:
The text was updated successfully, but these errors were encountered: