Skip to content

Conversation

mattfysh-ai
Copy link
Contributor

@mattfysh-ai mattfysh-ai commented Sep 25, 2025

Summary by CodeRabbit

  • Documentation
    • Updated the Cloudflare Workers hosting guide for React to reflect the latest Vite plugin usage for SSR environments.
    • Recommended plugin ordering adjusted so the Cloudflare plugin runs before framework plugins to improve compatibility.
    • Refreshed configuration examples and guidance to reduce setup errors and ensure smoother deployments.

Copy link
Contributor

coderabbitai bot commented Sep 25, 2025

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

Cohort / File(s) Summary
Docs — Cloudflare Workers hosting guide
docs/start/framework/react/hosting.md
Updated vite.config.ts snippet: switched from cloudflare() to cloudflare({ viteEnvironment: { name: 'ssr' } }) and reordered plugins so cloudflare(...) precedes tanstackStart() and viteReact().

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

I hop through docs with nimble cheer,
A plugin shift, now crystal clear.
Cloudflare first, then React’s bright start—
SSR named, a tidy chart.
Thump-thump! My paws approve the sight,
Configs aligned, the path feels right. 🐇✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
Title Check ✅ Passed The title succinctly indicates a documentation update to correct the Cloudflare configuration, which directly reflects the changes made to the plugin usage and ordering in the React hosting guide.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the documentation Everything documentation related label Sep 25, 2025
Copy link
Contributor Author

@mattfysh-ai mattfysh-ai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 86aa74e and 518d030.

📒 Files selected for processing (1)
  • docs/start/framework/react/hosting.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
docs/**/*.{md,mdx}

📄 CodeRabbit inference engine (AGENTS.md)

Use internal docs links relative to the docs/ folder (e.g., ./guide/data-loading)

Files:

  • docs/start/framework/react/hosting.md
docs/{router,start}/**

📄 CodeRabbit inference engine (AGENTS.md)

Place router docs under docs/router/ and start framework docs under docs/start/

Files:

  • docs/start/framework/react/hosting.md

@schiller-manuel schiller-manuel changed the title Fix cloudflare config docs: Fix cloudflare config Sep 26, 2025
@schiller-manuel schiller-manuel merged commit bb6e2e3 into TanStack:main Sep 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Everything documentation related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants