Skip to content

Defer content initialization during dev startup - #17975

Draft
matthewp wants to merge 2 commits into
perf/defer-content-config-and-dev-server-appfrom
perf/dev-content-deferral
Draft

matthewp wants to merge 2 commits into
perf/defer-content-config-and-dev-server-appfrom
perf/dev-content-deferral

Conversation

@matthewp

@matthewp matthewp commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Moves development content store loading, type generation, and content synchronization off the server-ready critical path.
  • Gates Astro SSR and prerender requests on content readiness while allowing Vite static/internal requests through, and exposes contentReady on the experimental JavaScript dev server for consumers that need the initial generated artifacts.
  • Settles background content work before restart or shutdown.

Testing

  • Adds a dev content deferral fixture covering fresh-store first requests, ungated static assets, immediate shutdown, config restart, and broken content configuration.
  • Updates the Cloudflare chunked-content test to explicitly await content readiness before inspecting its generated manifest.

Docs

  • No docs update needed because the only API addition is on the experimental JavaScript dev server.

@changeset-bot

changeset-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ada9ccb

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added the pkg: astro Related to the core `astro` package (scope) label Sep 11, 2026
@github-actions github-actions Bot added the pkg: integration Related to any renderer integration (scope) label Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope) pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant