What Integrations Can Do
Integrations can:- Unlock React, Vue, Svelte, Solid, and other popular UI frameworks
- Enable on-demand rendering with an SSR adapter
- Integrate tools like MDX and Partytown with a few lines of code
- Add new features to your project, like automatic sitemap generation
- Write custom code that hooks into the build process, dev server, and more
Browse or search the complete set of hundreds of official and community integrations in the Astro integrations directory.
Installing Integrations
Automatic Setup
Astro includes anastro add command to automate the setup of official integrations. Run the command using your package manager:
- npm
- pnpm
- yarn
- npm
- pnpm
- yarn
Manual Installation
Astro integrations are always added through theintegrations property in your astro.config.mjs file.
Step 1: Install the integration package
- npm
- pnpm
- yarn
astro.config.mjs
Configuration Options
Integrations are almost always authored as factory functions that return the actual integration object. This lets you pass arguments and options:Upgrading Integrations
Automatic Upgrading
Upgrade all official integrations at once:- npm
- pnpm
- yarn
Manual Upgrading
Upgrade one or more integrations manually:- npm
- pnpm
- yarn
Integration Categories
UI Frameworks
Add support for React, Vue, Svelte, and other UI frameworks
Adapters
Deploy to Netlify, Vercel, and other platforms
Other Integrations
MDX, Sitemap, Partytown, and more tools