Upgrade Astro 5 → 6 and Starlight 0.34 → 0.38#37
Open
ejntaylor wants to merge 1 commit into
Open
Conversation
Bumps Astro to v6, Starlight to v0.38, and all related plugins (starlight-openapi, starlight-llms-txt, astro-og-canvas) to their first Astro-6-compatible releases. Adds @astrojs/compiler-rs as an explicit dependency so Rollup can resolve Astro's dynamic import. Code changes for v6 compatibility: - src/content.config.ts: import `z` from `astro/zod` (the `astro:content` re-export is deprecated in v6). - src/pages/open-graph/[...route].js: rename `slug` → `id` (the legacy content-collection backwards-compat shim was removed) and `await OGImageRoute(...)` (its return type is now a Promise). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
❌ Deploy Preview for deluxe-meerkat-8daf24 failed.
|
|
Migration covering the required updates. 🎯 Quality: 70% Good · 📦 Size: Oversized — strongly consider breaking this down 📈 This month: Your 85th PR — above team average · Averaging Good |
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
starlight-openapi,starlight-llms-txt, andastro-og-canvas.@astrojs/compiler-rsas an explicit dependency so Rollup can resolve Astro's dynamic import during the static build (Astro 6 ships a dynamicimport("@astrojs/compiler-rs")but does not declare it in its owndependencies).src/content.config.ts: importzfromastro/zod(theastro:contentre-export is deprecated in v6).src/pages/open-graph/[...route].js: renameslug→id(Astro 6 removed the legacy content-collection backwards-compat shim, sodocsLoaderentries now exposeidonly) andawait OGImageRoute(...)(its return type is now aPromise).Versions
astro@astrojs/starlight@astrojs/sitemapstarlight-openapistarlight-llms-txtastro-og-canvas@astrojs/compiler-rsTest plan
npm installsucceeds with no peer-dependency errorsnpm run buildcompletes (190 pages, including all three OpenAPI references and OG images)npm run devboots; home page returns 200llms.txt/llms-full.txtlook rightNotes
Astro.glob,<ViewTransitions />,emitESMImage,loadManifest,loadApp,NodeApp, orASSETS_PREFIXin the codebase, so the major v6 removals don't apply here.🤖 Generated with Claude Code