Customize your Astro Project with Integrations
summary
Astro presents integrations as small npm packages that hook into lifecycle callbacks to add real features: use astro add to install React, sitemap, Netlify adapter or Starlight; an integration is a function returning an object with a name and hooks. The demo builds a custom integration that uses astro.config.done and astro.build.done hooks plus Vite load to check mode and write a robots.txt into the dist for Netlify branch deploys, showing it runs and prevents indexing.
AI-written summary · about
