Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )