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.0.9
Node v23.2.0
System Linux (x64)
Package Manager pnpm
Output static
Adapter @astrojs/cloudflare
Integrations none
Describe the Bug
When using the Cloudflare adapter with a prerendered 404 page, the server islands route is not included in the _routes.json file, causing server islands to not function.
Please keep this open. In theory the /_server-islands/* definition should be added in the current approach too, not sure why it doesn't. Any ideas @florian-lefebvre?
Still hoping to land #454 soon :)
Astro Info
Describe the Bug
When using the Cloudflare adapter with a prerendered 404 page, the server islands route is not included in the
_routes.json
file, causing server islands to not function.Local wrangler output on the minimal example:
Tested with local wrangler and production Cloudflare pages.
Manually adding
/server_islands/*
toroutes.extend.include[]
works but that does not feel like an intended behavior.What's the expected result?
/_server-islands/*
is included in the generated_routes.json
file if one or more server island exists, or in some other way that server islands work.Link to Minimal Reproducible Example
https://github.com/soopyc/astro-cf-404-mre
Participation
The text was updated successfully, but these errors were encountered: