Skip to content

Upgrade: v2.4 to v2.5.1

This guide takes a project from Velocity 2.4 or 2.5.0 to Velocity 2.5.1. There are no breaking changes, and nothing changes in your pages. Coming from 2.0–2.3? Follow v2.x to v2.4.1 first; the upgrade itself goes straight to 2.5.1.

2.4.12.5.1
Agent skills67, with velocity-start-site
Site brief.agents/site.md, created by your agent or the CLI
check:agent warningsAdds content/placeholder, config/default-identity and a11y/multiple-h1
create-velocity-astro2.1+2.3+ recommended
Terminal window
npm create velocity-astro@latest upgrade
  • Ask your agent to set up the site. If your project still has starter or demo content, ask it to “Set up this site for my business”. See Set up your site.
  • Expect new warnings. check:agent now reports placeholders still on a page, the scaffold’s default name, author and email in site.config.ts, a build without SITE_URL, and pages with more than one <h1>. They’re warnings, so validate still passes. Run npm run check:agent -- --strict before launch to make them fail.
  • Coming from 2.5.0: the upgrade deletes files Velocity no longer ships and backs them up to .velocity-backup/. If package.json has a design script, delete it. Your theme, components and .agents/site.md aren’t touched.
Terminal window
npm install
npm run validate