Support CF DurableObjects, Workflows, and cron jobs - #19
Closed
JoviDeCroock wants to merge 2 commits into
Closed
Conversation
JoviDeCroock
force-pushed
the
JoviDeCroock/cf-worker-exports
branch
from
April 8, 2026 00:20
1a16543 to
ba3c381
Compare
Add `workerEntrypoint` option to `cloudflareAdapter()` so users can export Cloudflare primitives (DurableObject classes, Workflow classes) and event handlers (scheduled, queue, tail, email, trace) from a single file that gets merged into the generated worker entry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
JoviDeCroock
force-pushed
the
JoviDeCroock/cf-worker-exports
branch
from
April 8, 2026 00:26
ba3c381 to
f9751b6
Compare
Add `durableObjectsDir` and `workflowsDir` options to `cloudflareAdapter()`.
Files in these directories are automatically re-exported from the generated
worker entry so Cloudflare discovers DurableObject and Workflow classes.
Also passes `{ root }` context to `PrachtAdapter.createServerEntryModule()`
so adapters can scan the filesystem at build time.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
JoviDeCroock
force-pushed
the
JoviDeCroock/cf-worker-exports
branch
from
April 8, 2026 00:27
f9751b6 to
8654604
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
workerEntrypointoption tocloudflareAdapter()that points at a user file exporting Cloudflare primitivesexport *so Cloudflare discovers themscheduled,queue,tail,email,trace) are merged into the default{ fetch, … }objectdocs/ADAPTERS.mdwith usage examplesTest plan
workerEntrypoint(no behavioral change)scheduledhandler, confirm both are present in the bundlewrangler devpicks up the exported DurableObject binding🤖 Generated with Claude Code