Skip to content

Commit

Permalink
Add section on removing an integration (#2628)
Browse files Browse the repository at this point in the history
* Add section on removing an integration

- Adds a section on how to manually remove an integration

* Fix word

Fix missing r on "your"

* Use title instead of comment for file name

* Update src/pages/en/guides/integrations-guide.mdx

Co-authored-by: Dan Jutan <danjutan@gmail.com>

---------

Co-authored-by: BryceRussell <19967622+BryceRussell@users.noreply.github.com>
Co-authored-by: Dan Jutan <danjutan@gmail.com>
  • Loading branch information
3 people committed Feb 13, 2023
1 parent 6d01a56 commit 1703b1d
Showing 1 changed file with 36 additions and 0 deletions.
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:

```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

0 comments on commit 1703b1d

Please sign in to comment.