Skip to content

docs: Fix cloudflare config - #5225

Merged
schiller-manuel merged 2 commits into
TanStack:mainfrom
mattfysh-ai:patch-1
Sep 26, 2025
Merged

docs: Fix cloudflare config#5225
schiller-manuel merged 2 commits into
TanStack:mainfrom
mattfysh-ai:patch-1

Conversation

@mattfysh-ai

@mattfysh-aimattfysh-ai commented Sep 25, 2025

Copy link
Copy Markdown
Contributor

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.

@coderabbitai

coderabbitaiBot commented Sep 25, 2025

Copy link
Copy Markdown
Contributor

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 nameStatusExplanation
Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage✅ PassedNo functions found in the changes. Docstring coverage check skipped.
Title Check✅ PassedThe 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-actionsgithub-actionsBot added the documentation Everything documentation related label Sep 25, 2025

@mattfysh-aimattfysh-ai left a comment

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

fix

@coderabbitaicoderabbitaiBot left a comment

Copy link
Copy Markdown
Contributor

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

Comment threaddocs/start/framework/react/hosting.md Outdated
@schiller-manuelschiller-manuel changed the title Fix cloudflare configdocs: Fix cloudflare configSep 26, 2025
@schiller-manuel
schiller-manuel merged commit bb6e2e3 into TanStack:mainSep 26, 2025
2 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationEverything documentation related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mattfysh-ai@schiller-manuel