🔥 All-Access Pass — $199 USD (Regular $499) · Unlock all 2,836 Astro themes ➔
komal.nakrani
Get All-Access Pass ($199)
ThemesCategoriesDocsBlogTips & TricksPricingGet All-Access Pass ($199)
Astro Fundamentals••By Komal Nakrani

Astro Maintenance: A Monthly and Yearly Checklist

Astro maintenance made routine: what to check monthly, quarterly and yearly, from dependency updates and Astro upgrades to broken links, Core Web Vitals and backups.

#Astro#Maintenance#Upgrades#Dependencies

Astro maintenance is light compared with a CMS-driven site, because a static Astro build has no server, database or plugins to patch in production. What remains is a short routine: update dependencies and check the build monthly, review content, links and performance quarterly, and once a year upgrade to the current Astro major version, renew domains and review hosting. Most of it can be automated in CI.

This checklist is organised by frequency, with the commands to run for each step.

Key Takeaways

  • A static Astro site has little to patch in production; maintenance is mostly about the build.
  • Update dependencies monthly in a branch, and let CI prove the build still works.
  • Upgrade Astro majors with npx @astrojs/upgrade, and read the upgrade guide first.
  • Check broken links, Search Console errors and Core Web Vitals every quarter.
  • Renew domains, rotate API tokens and confirm you can still deploy, once a year.

Why Astro sites need less maintenance

A typical WordPress site runs PHP, a database and a dozen plugins on a live server, and each of those needs security updates on someone else’s schedule. A static Astro site ships HTML, CSS, images and a little JavaScript to a CDN. There is no login page to attack and no runtime to patch.

That does not mean zero maintenance. Your dependencies still age, Node.js versions reach end of life, browsers change, links rot, and content goes stale. The difference is that problems show up at build time, on your machine or in CI, rather than as an outage. If your site uses on-demand rendering through an adapter, you also have a runtime to keep current, and the monthly updates matter more.

Monthly maintenance

These take 15 to 30 minutes and keep small updates from piling into large ones.

Update dependencies in a branch

git switch -c chore/deps-2026-11
npm outdated
npm update
npm run build && npx astro check

npm outdated shows what has new versions. npm update stays within the ranges in package.json, so it applies minor and patch releases only. Review anything with a new major version separately.

To update Astro and its official integrations together, use the upgrade tool:

npx @astrojs/upgrade

It updates astro and every @astrojs/* package to versions that work together, and it prints links to changelogs when a major version is involved.

Check security advisories

npm audit --omit=dev

For a static site, most advisories affect build tools rather than anything visitors download, so judge each one by where the package runs. Still, update rather than ignore. Enable Dependabot or Renovate in your repository so update pull requests arrive automatically, with your CI run attached.

Confirm the production build

  • The last scheduled or automatic deploy succeeded.
  • npm run build has no new warnings.
  • The live site loads, and the latest content is there.

A failing CI build after an update is the cheapest possible bug report. The GitHub Actions workflows guide has a check-and-build workflow to run on every update pull request.

Quarterly maintenance

  • Run a link checker against the build (lychee, or your host’s link reports) for internal and external links.
  • Review Google Search Console for 404s, “Crawled, not indexed” pages and structured data errors.
  • Add redirects for real URLs that people still request and that now 404.
npm run build
# lychee is a standalone binary: brew install lychee, or use its GitHub Action
lychee --offline 'dist/**/*.html'

Performance

  • Check Core Web Vitals field data in Search Console or PageSpeed Insights.
  • Run Lighthouse on the home page and the heaviest template.
  • Look for images added since last quarter that are not using <Image />, and large islands that hydrate on load.

New content is the usual source of regressions: a 5 MB photo dropped into public/, or an embed pasted into a post. The Astro performance guide covers what to fix first.

Content

  • Update posts with outdated version numbers, screenshots or prices, and set updatedDate.
  • Remove or merge thin pages that get no traffic.
  • Check that forms still deliver to the right inbox.

Third-party services

  • Analytics is still recording.
  • Form, newsletter and comment services have not changed their embed code or pricing tier.
  • Any CMS webhooks still trigger rebuilds.

Yearly maintenance

Upgrade Astro and Node.js

Astro ships major versions regularly; Astro 7 shipped in June 2026. Staying within one major of the current release keeps upgrades small and documentation relevant.

  1. Read the official upgrade guide for the new major on docs.astro.build, end to end, before touching code.
  2. Check your Node.js version against the new requirement. Astro 7 needs Node.js 22.12 or later, and 22.23.4 or later from 7.4.2. Update .nvmrc, your host’s build settings and CI together.
  3. Run npx @astrojs/upgrade in a branch.
  4. Fix deprecations reported by astro check and the build. Deprecated APIs usually keep working for one major, then disappear.
  5. Compare the old and new builds visually on key pages before merging.

Some changes are easy to miss because nothing fails. In Astro 7, for example, the compressHTML default changed to 'jsx' whitespace handling, and the top-level markdown.remarkPlugins option was deprecated in favor of markdown.processor. The What’s new in Astro 7 article summarizes the changes for this cycle, and config options worth knowing covers the new defaults.

Accounts, domains and secrets

  • Domain renewal date and auto-renew are set; contact details on the registrar are current.
  • DNS records are documented somewhere other than the registrar’s dashboard.
  • API tokens used in CI and the host (CMS, Cloudflare, form services) are rotated, and unused ones revoked.
  • At least two people can access the repository, host and domain registrar.

Hosting and backups

  • The hosting plan still fits traffic and build minutes.
  • The repository is the backup for code and Markdown content; content stored in a CMS has its own export.
  • You can deploy from a fresh clone on a new machine, following only the README.

That last item is the real test of a maintainable project. If a new developer, or you in a year, cannot clone, install and deploy in under an hour, write down what was missing.

Accessibility and design

  • Re-run an accessibility check on key templates, including keyboard navigation.
  • Review the cookie notice, privacy policy and legal pages for accuracy.
  • Decide whether the design still serves the site, or whether a refresh is due.

Automate what you can

Most of this routine can run without you:

Task Automation
Dependency updates Dependabot or Renovate pull requests
Build and type check CI on every pull request
Broken internal links Link checker step in CI
Fresh CMS content Scheduled rebuild or CMS webhook
Performance regressions Lighthouse CI on pull requests
Domain expiry Registrar auto-renew plus a calendar reminder

With those in place, monthly maintenance becomes reviewing and merging a few pull requests, and the yearly upgrade is the only task that needs focused time.

Maintaining a site built from a theme

If your site started from a theme, keep your changes easy to separate from the original. Put brand tokens in one stylesheet, keep content in collections, and avoid editing shared components when a prop or slot would do. That way, when the theme author ships an update, you can compare and merge it instead of starting over. Komal themes include free lifetime updates, delivered through the theme’s private GitHub repository, so pulling an update is a normal Git merge. The theme customization guide covers how to structure changes, and you can browse Astro themes if you are planning a rebuild. For running the project locally after a long break, the getting started docs are the quickest refresher.

FAQ

How often should I update an Astro site?

Update dependencies monthly, review content, links and performance quarterly, and check once a year that you are on the current Astro major version. Apply security updates as soon as they affect anything that runs in production.

How do I upgrade Astro to the latest version?

Run npx @astrojs/upgrade in your project. It updates astro and the official @astrojs/* integrations together. Read the upgrade guide for any new major version first, and test the build in a branch.

Do static Astro sites need security updates?

Less than server-rendered sites, because there is no server code running in production. Build tools still get advisories, and any adapter or server endpoints you use do run code, so keep dependencies current.

What breaks most often on an Astro site over time?

External links, third-party embeds and form services break most often, followed by build failures when the host’s Node.js version changes. A scheduled CI build and a quarterly link check catch most of these early.

Can I skip an Astro major version?

You can, but you then apply two sets of breaking changes at once. Upgrading one major at a time keeps each upgrade small and lets you follow a single upgrade guide.