Skip to content
Source
Sign inSign up
TanStack/router

docs: Fix cloudflare config #5225

Mergedmattfysh-ai(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/5225/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

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.
    1. 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.
    2. 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 86aa74e345839b055e72ccabe5d82a3c16c6170f and 518d030a752e51e0ec82ea13698c4c8188d9f71e.

      📒 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
      OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)

Sign in to join this conversation.