Skip to content

Conversation

@alexander-zuev
Copy link

@alexander-zuev alexander-zuev commented Jan 24, 2026

Closes #6487

Adds documentation showing that createServerEntry() returns a spreadable object, enabling server.ts to serve as a full Cloudflare Worker entrypoint
with:

  • SSR + Server Functions (fetch)
  • Queue Consumer + Producer
  • Cron Jobs (scheduled)
  • Other Workers features (Durable Objects, etc.)

Tested and working in locally.

Uploading image.png…

Summary by CodeRabbit

  • Documentation
    • Added comprehensive guide on extending server entry points with Cloudflare Workers handlers, including fetch, queue, scheduled events, and Durable Objects support, with complete code examples and local testing instructions.

✏️ Tip: You can customize this high-level summary in your review settings.

@github-actions github-actions bot added the documentation Everything documentation related label Jan 24, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 24, 2026

📝 Walkthrough

Walkthrough

This PR adds a new documentation section to the Server Entry Point guide explaining how createServerEntry() returns a spreadable object that can be extended with additional Cloudflare Workers handlers (queue, scheduled, Durable Objects). Includes usage examples and local testing instructions.

Changes

Cohort / File(s) Summary
Documentation: Cloudflare Workers Extension Pattern
docs/start/framework/react/guide/server-entry-point.md
Added "Extending with Cloudflare Workers Handlers" section (+43 lines) with code example showing how to spread createServerEntry() result and add queue, scheduled, and Durable Object handlers; includes local testing curl snippet for scheduled handlers.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • TanStack/router#5859 — Documents and demonstrates the createServerEntry() API extensibility for Cloudflare Workers that the current PR explains in detail.

Suggested reviewers

  • tannerlinsley
  • schiller-manuel

Poem

🐰 ✨ A new path appears so clear,
Where handlers dance and workers cheer,
Queue and cron now hand-in-hand,
One mighty export rules the land!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the primary change: adding documentation about Cloudflare Workers handlers to the server entry point guide.
Linked Issues check ✅ Passed The documentation addition addresses all core objectives from issue #6487: demonstrates spreading serverEntry with additional handlers, shows Durable Objects as named exports, and includes local testing guidance.
Out of Scope Changes check ✅ Passed All changes are directly within scope—only documentation was modified (server-entry-point.md) to address the linked issue with no unrelated alterations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

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.

Docs: Clarify server entry point can be extended with Cloudflare queue/scheduled handlers

1 participant