docs: Fix cloudflare config #5225
Mergedmattfysh-ai(GitHub profile, opens in a new tab)merged 2 commits into
main fromrefs/pull/5225/headmerged by schiller-manuel(GitHub profile, opens in a new tab) github-actions[bot](GitHub profile, opens in a new tab) added labelsdocumentation
- @@ -53,4 +53,4 @@5353 import viteReact from '@vitejs/plugin-react'54545555 export default defineConfig({56- plugins: [tanstackStart(), cloudflare(), viteReact()],56+ plugins: [cloudflare({viteEnvironment: {name: 'ssr'}), tanstackStart(), viteReact()],
schiller-manuel(GitHub profile, opens in a new tab) changed the title
Sign in to join this conversation.
Walkthrough#
Documentation update modifies the React/Cloudflare Workers hosting guide to change the Vite plugin usage and plugin order in the example vite.config.ts snippet.
Changes#
docs/start/framework/react/hosting.mdcloudflare()tocloudflare({ viteEnvironment: { name: 'ssr' } })and reordered plugins socloudflare(...)precedestanstackStart()andviteReact().Estimated code review effort#
🎯 1 (Trivial) | ⏱️ ~3 minutes
Poem#
Pre-merge checks and finishing touches#
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share