Skip to content

fix(site): fix build broken by astro@6.4.8 dependabot bump#1191

Merged
jamesadevine merged 1 commit into
mainfrom
copilot/fix-dependabot-pr-site-issue
Jun 24, 2026
Merged

fix(site): fix build broken by astro@6.4.8 dependabot bump#1191
jamesadevine merged 1 commit into
mainfrom
copilot/fix-dependabot-pr-site-issue

Conversation

Copilot AI commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

astro@6.4.8 imports unified from @astrojs/markdown-remark@7.2.0 in its prerender runtime. The prerender bundle executes from site/dist/, so Node.js resolves against the top-level node_modules/ — which was pinned to 7.1.2 (no unified export) by starlight-llms-txt@astrojs/mdx@5.x.

  • package.json: Add overrides to force @astrojs/markdown-remark@^7.2.0 to the top level; bump @astrojs/starlight ^0.38.4^0.40.0 (targets astro@^6.4.5, requires @astrojs/markdown-remark@^7.2.0)
  • astro.config.mjs: Fix sidebar config — starlight 0.39.0 removed the autogenerate+label shorthand; wrap Introduction and Troubleshooting entries in items: [{ autogenerate: ... }]
  • package-lock.json: Regenerated

Test plan

Local build: 37 pages, all internal links valid.

- 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 AI requested a review from jamesadevine June 24, 2026 14:24
@jamesadevine jamesadevine marked this pull request as ready for review June 24, 2026 14:36
@jamesadevine jamesadevine merged commit 32063ac into main Jun 24, 2026
27 checks passed
@jamesadevine jamesadevine deleted the copilot/fix-dependabot-pr-site-issue branch June 24, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants