Cloudflare adapter is unable to export D...
FYI - this is just a heads up regarding Astro and Durable Objects
It appears that the current astro/cloudflare adapter is unable to build a worker which exports classes for durable objects
This means that even if you use workers assets with Astro, you still can't combine your durable object code with other Astro SSR code in one worker.
I have filed https://github.com/withastro/adapters/issues/494
Repro in https://github.com/jldec/astro-do/pull/1
It appears that the current astro/cloudflare adapter is unable to build a worker which exports classes for durable objects
This means that even if you use workers assets with Astro, you still can't combine your durable object code with other Astro SSR code in one worker.
I have filed https://github.com/withastro/adapters/issues/494
Repro in https://github.com/jldec/astro-do/pull/1
GitHub
Astro Info 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 Dura...
GitHub
pnpm dev currently fails with
20:15:59 [WARN] [config] The adapter @astrojs/cloudflare has limited support for "sharp". Certain features may not work as expected.
20:15:59 [types]...
20:15:59 [WARN] [config] The adapter @astrojs/cloudflare has limited support for "sharp". Certain features may not work as expected.
20:15:59 [types]...