[astro 5] not detecting "hybrid" (server
) build when having only static pages but some server-islands
#12744
Labels
- P2: has workaround
Bug, but has workaround (priority)
feat: server islands
Related to Server Islands (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When you are in
output: static
and have NO page (src/pages/**/*.astro
) opting out for prerender (withexport const prerender = false;
), BUT you have some SSR component imported withserver:defer
(a.k.a. server-island) then the astro hookastro:config:done
it returningbuildOutput: static
instead ofserver
and it makes the adapters not building the ssr entrypoint for the server-islands.Tip
As a workaround simply add a unused page with
export const prerender = false;
and it will trick Astro to think we are hybridWhat's the expected result?
When I have have
output: static
, and only static pages, but at least one server-island, then astro should detect the output as "hybrid" (server
to be precise).Read the README from reproduction URL
Link to Minimal Reproducible Example
https://github.com/PaulSenon/issue-reproduction-astro-netlify-adapter/tree/astro-static-issue?tab=readme-ov-file
Participation
The text was updated successfully, but these errors were encountered: