You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro v5.1.2
Node v22.11.0
System macOS (arm64)
Package Manager pnpm
Output server
Adapter @astrojs/cloudflare
Integrations @astrojs/tailwind
Describe the Bug
When attempting to use Durable Objects with the astro/cloudflare adapter, class definitions of the objects are not exported. This results in runtime errors.
Astro Info
Describe the Bug
When attempting to use Durable Objects with the astro/cloudflare adapter, class definitions of the objects are not exported. This results in runtime errors.
The root cause is that only the
fetch
handler is currently exportedhttps://github.com/withastro/adapters/blob/main/packages/cloudflare/src/entrypoints/server.ts#L94
What's the expected result?
The adapter needs to expose a way to export additional handlers (e.g. for cron and email) as well as durable object classes.
Link to Minimal Reproducible Example
jldec/astro-do#1
Participation
The text was updated successfully, but these errors were encountered: