Bug Description
Astro 6 hybrid prerender fails on Cloudflare Workers with "component instance" error.
Environment
- Workers runtime: Cloudflare Workers (production)
- Framework: Astro 6 + @astrojs/cloudflare@13+
- Build:
astro build with output: 'server'
Problem
Setting export const prerender = true on static pages causes 500 errors:
Error: Unexpectedly unable to find a component instance for route /[slug]
Steps to Reproduce
- Create Astro project with
output: 'server'
- Add
@astrojs/cloudflare adapter
- Create a page with
export const prerender = true
- Deploy to Cloudflare Workers
- Visit the prerendered page
Expected Behavior
Static HTML served from edge, reduced Workers CPU.
Actual Behavior
500 Internal Server Error on prerendered routes.
Additional Context
Bug Description
Astro 6 hybrid prerender fails on Cloudflare Workers with "component instance" error.
Environment
astro buildwithoutput: 'server'Problem
Setting
export const prerender = trueon static pages causes 500 errors:Steps to Reproduce
output: 'server'@astrojs/cloudflareadapterexport const prerender = trueExpected Behavior
Static HTML served from edge, reduced Workers CPU.
Actual Behavior
500 Internal Server Error on prerendered routes.
Additional Context
wrangler devworks