Skip to content

[pull] main from withastro:main#435

Merged
pull[bot] merged 10 commits intocode:mainfrom
withastro:main
Mar 12, 2026
Merged

[pull] main from withastro:main#435
pull[bot] merged 10 commits intocode:mainfrom
withastro:main

Conversation

@pull
Copy link

@pull pull bot commented Mar 12, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

rururux and others added 10 commits March 12, 2026 10:15
…er output (#15767)

* fix(astro): server islands not working in prerendered pages with server output (#15753)

* Remove unnecessary fs import and dist cleanup from test

* fix: patch server island manifest across build environments

When server islands (server:defer) are only used in prerendered pages,
the SSR build environment never discovers them — it leaves empty map
placeholders in the manifest. The prerender build discovers the islands
later but the SSR output is already finalized.

Fix by deferring placeholder replacement during build: renderChunk leaves
placeholders intact when no islands are known yet, renderChunk saves
resolved filenames when processing them in the prerender env, and
generateBundle patches the SSR manifest chunk in-memory. A post-build
hook also patches the on-disk SSR output and copies island component
chunks from the prerender directory to the server output.

* refactor server-island post-build patching into plugin hook

* refactor: rename deferred server entries environment

* fix: remove extra server-islands build environment

* chore: resolve lint ci unused exports and directives

* refactor: simplify server island map source generation

* refactor: share prerender output directory helper

* Simplify changeset

* chore: restore benchmark template eslint directive

* test: allow either quote style in server-islands assertion
Co-authored-by: astrobot-houston <fred+astrobot@astro.build>
…ot directories (#15754)

Co-authored-by: astrobot-houston <fred+astrobot@astro.build>
Regenerate the dev route-to-CSS map after route rebuilds so newly created pages in dev include layout-imported styles without requiring a server restart.
Co-authored-by: astrobot-houston <fred+astrobot@astro.build>
@pull pull bot locked and limited conversation to collaborators Mar 12, 2026
@pull pull bot added the ⤵️ pull label Mar 12, 2026
@pull pull bot merged commit f47ac53 into code:main Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants