fix(site): fix build broken by astro@6.4.8 dependabot bump#1191
Merged
Conversation
- Add `overrides` in package.json to force @astrojs/markdown-remark@^7.2.0 to the top-level, fixing the prerender runtime import of `unified` that astro@6.4.8 introduced but starlight-llms-txt's @astrojs/mdx@5.x pinned to 7.1.2 at the root - Upgrade @astrojs/starlight from ^0.38.4 to ^0.40.0 (compatible with astro@^6.4.5 and @astrojs/markdown-remark@^7.2.0) - Update sidebar autogenerate config format removed in starlight v0.39.0 (autogenerate with label -> items array wrapping) Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
jamesadevine
June 24, 2026 14:24
View session
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
astro@6.4.8importsunifiedfrom@astrojs/markdown-remark@7.2.0in its prerender runtime. The prerender bundle executes fromsite/dist/, so Node.js resolves against the top-levelnode_modules/— which was pinned to7.1.2(nounifiedexport) bystarlight-llms-txt→@astrojs/mdx@5.x.package.json: Addoverridesto force@astrojs/markdown-remark@^7.2.0to the top level; bump@astrojs/starlight^0.38.4→^0.40.0(targetsastro@^6.4.5, requires@astrojs/markdown-remark@^7.2.0)astro.config.mjs: Fix sidebar config — starlight 0.39.0 removed theautogenerate+labelshorthand; wrapIntroductionandTroubleshootingentries initems: [{ autogenerate: ... }]package-lock.json: RegeneratedTest plan
Local build: 37 pages, all internal links valid.