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
    • New guide: extending server entry points with Cloudflare Workers handlers. Covers using Workers for SSR and fetch, queue processing, scheduled events, and Durable Objects via named exports. Includes practical code examples, local testing instructions, and links to Cloudflare Workers documentation for further reference.

✏️ 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

Adds a new docs section "Extending with Cloudflare Workers Handlers" showing that createServerEntry() returns a spreadable object and demonstrating adding queue, scheduled, and Durable Object handlers plus local testing notes.

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 (+~45 lines) with examples showing spreading createServerEntry() to compose fetch, queue, scheduled handlers and named Durable Object exports; includes local testing curl snippet for scheduled handlers.

Sequence Diagram(s)

(Skipped — changes are documentation-only and do not introduce new runtime control-flow in code.)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • tannerlinsley
  • schiller-manuel

Poem

🐰✨ I spread my paws and share the door,
Fetch, queue, and cron now roam and soar,
Durable friends in named array,
One worker runs them all today — hooray! 🥕

🚥 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 PR title clearly and concisely summarizes the main change: adding a documentation section about Cloudflare Workers handlers to the server entry point guide.
Linked Issues check ✅ Passed The PR fulfills all coding-related requirements from issue #6487: documents the spreadable ServerEntry pattern, demonstrates queue/scheduled handlers, shows Durable Objects as named exports, and provides local testing guidance.
Out of Scope Changes check ✅ Passed All changes are within scope—the PR only adds documentation to the server-entry-point.md file as required by 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.

@MattieTK
Copy link

@alexander-zuev We've now improved our docs on the TanStack Start documentation page on the Cloudflare Workers docs page if you want to point to that.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@alexander-zuev
Copy link
Author

nice, @MattieTK added this one liner to the PR:
For a comprehensive guide covering Durable Objects, Workflows, Service Bindings, and other Cloudflare-specific features, see the Cloudflare Workers documentation for TanStack Start.

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

2 participants