Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add section on removing an integration #2628

Merged
merged 4 commits into from
Feb 13, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions src/pages/en/guides/integrations-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,42 @@ integrations: [
]
```

## Removing an Integration

To remove an integration, first uninstall the integration from your project

<PackageManagerTabs>
<Fragment slot="npm">
```shell
npm uninstall @astrojs/image
```
</Fragment>
<Fragment slot="pnpm">
```shell
pnpm uninstall @astrojs/image
```
</Fragment>
<Fragment slot="yarn">
```shell
yarn remove @astrojs/image
```
</Fragment>
</PackageManagerTabs>

Next, remove the integration from your `astro.config.*` file
BryceRussell marked this conversation as resolved.
Show resolved Hide resolved

```js title="astro.config.mjs" del={3,7}
import { defineConfig } from 'astro/config'

import image from "@astrojs/image";

export default defineConfig({
integrations: [
image()
]
})
```

## Finding More Integrations

You can find many integrations developed by the community in the [Astro Integrations Directory](https://astro.build/integrations/). Follow links there for detailed usage and configuration instructions.
Expand Down