Migrating Remix->React-React@7 given the Cloudflare Pages packages
The Remix->RR7 doesn't cover the Cloudflare Pages-specific bits. I noticed the Cloudflare CLI does not yet support React Router 7, so does anyone have a GitHub template I can reference for React Router 7 on Cloudflare Pages? Similar to https://github.com/remix-run/remix/tree/main/templates/cloudflare was for Remix. Thanks! cc @Jikyu who has similar question from November https://discord.com/channels/595317990191398933/1310637907689865257/1310637907689865257
GitHub
remix/templates/cloudflare at main · remix-run/remix
Build Better Websites. Create modern, resilient user experiences with web fundamentals. - remix-run/remix
3 Replies
Specific issue at hand is figuring out what the Cloudflare Pages [[path]].ts file should look like. Remix's upgrade codemod changed this which isn't a valid npm package

@react-router/cloudflare"
seems promising, though some types aren't aligned and it's unclear what to do with the build
object now
oh found this, can't wait for it to be included in the cli! https://github.com/cloudflare/templates/tree/main/react-router-starter-template
GitHub
templates/react-router-starter-template at main · cloudflare/templa...
Templates for Cloudflare Workers. Contribute to cloudflare/templates development by creating an account on GitHub.