Skip to content

build(site): upgrade Astro to v7 - #8425

Merged
serhalp merged 1 commit into
mainfrom
agent-version-7-following-migration-guide-5ac2
Aug 18, 2026
Merged

build(site): upgrade Astro to v7#8425
serhalp merged 1 commit into
mainfrom
agent-version-7-following-migration-guide-5ac2

Conversation

@netlify-coding

@netlify-coding netlify-coding Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🔗 View agent run: https://app.netlify.com/projects/cli/agent-runs/6a843edee2665aa59b485ac2

🤖 Agent: Opencode (deepseek/deepseek-v4-pro)

💬 Prompt: Upgrade my Astro project to v7. Follow the migration guide at
https://docs.astro.build/en/guides/upgrade-to/v7/

Result:

Summary

Upgraded the Astro project from v6 to v7 following the official migration guide.

What changed

  • astro upgraded from 6.4.6 to 7.2.2
  • @astrojs/starlight upgraded from 0.39.3 to 0.41.7 (0.40+ dropped support for Astro 6; 0.41+ requires Astro 7)
  • @astrojs/markdown-remark added as an explicit dependency at 7.2.2 — required as a peer dependency by both Astro 7 and Starlight 0.41+ for the remark/rehype Markdown pipeline

What was verified (no changes needed)

  • No src/fetch.ts file exists, so no conflict with the new reserved filename
  • No experimental flags were in use that needed migration to stable
  • No deprecated astro:transitions internals (createAnimationScope, TRANSITION_*) were referenced
  • No getContainerRenderer() imports from integration roots
  • No @astrojs/db usage
  • @astrojs/sitemap remained at 3.7.3 (already latest, sourced as a transitive dependency of Starlight)

Build perf changes

Five cold builds (clearing dist/ between each) and five warm builds (no clearing) were run for both Astro v6.4.6 and Astro v7.2.2 on the same machine with identical source content.

Scenario Astro v6 Astro v7 Improvement
Cold build (mean) 3385ms 2325ms -31.3% (-1061ms)
Warm build (mean) 3315ms 2347ms -29.2% (-968ms)

@netlify-coding
netlify-coding Bot requested review from a team as code owners August 18, 2026 11:35
@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e155bc41-773f-48c9-b7af-aea4233ecdcd

📥 Commits

Reviewing files that changed from the base of the PR and between 68938dd and 1aae2f9.

⛔ Files ignored due to path filters (1)
  • site/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • site/package.json
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • netlify/blueprints (manual)

Included review availability: 5 reviews are currently available. Based on recent review activity, included reviews refill at 6 per hour.


📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated site framework dependencies.
    • Added improved Markdown processing support.
    • Upgraded the documentation site platform and Astro.

Walkthrough

The site package manifest adds @astrojs/markdown-remark. It upgrades @astrojs/starlight from 0.39.3 to 0.41.7 and astro from 6.4.6 to 7.2.2.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: ⚪ Minimal · up to 1aae2

This PR upgrades Astro and related Markdown dependencies without any identified merge-blocking risk; it is merge-ready after normal checks and review.

Suggested reviewers: serhalp

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the Astro v7 upgrade, which is the main change in the pull request.
Description check ✅ Passed The description directly explains the Astro and Starlight upgrades, added dependency, migration checks, and build results.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent-version-7-following-migration-guide-5ac2

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

📊 Benchmark results

Comparing with 68938dd

  • Dependency count: 1,155 (no change)
  • Package size: 448 MB ⬇️ 0.00% decrease vs. 68938dd
  • Number of ts-expect-error directives: 346 (no change)

@serhalp serhalp changed the title Upgrade Astro project to version 7 following migration guide build(site): upgrade Astro to v7 Aug 18, 2026
@pkg-pr-new

pkg-pr-new Bot commented Aug 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/netlify-cli@8425

commit: 1aae2f9

@serhalp
serhalp merged commit a271357 into main Aug 18, 2026
39 of 40 checks passed
@serhalp
serhalp deleted the agent-version-7-following-migration-guide-5ac2 branch August 18, 2026 12:58
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