Skip to content

Commit 1703b1d

Browse files
BryceRussellDan Jutan
andauthored
Add section on removing an integration (#2628)
* 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>
1 parent 6d01a56 commit 1703b1d

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,42 @@ integrations: [
120120
]
121121
```
122122

123+
## Removing an Integration
124+
125+
To remove an integration, first uninstall the integration from your project
126+
127+
<PackageManagerTabs>
128+
<Fragment slot="npm">
129+
```shell
130+
npm uninstall @astrojs/image
131+
```
132+
</Fragment>
133+
<Fragment slot="pnpm">
134+
```shell
135+
pnpm uninstall @astrojs/image
136+
```
137+
</Fragment>
138+
<Fragment slot="yarn">
139+
```shell
140+
yarn remove @astrojs/image
141+
```
142+
</Fragment>
143+
</PackageManagerTabs>
144+
145+
Next, remove the integration from your `astro.config.*` file:
146+
147+
```js title="astro.config.mjs" del={3,7}
148+
import { defineConfig } from 'astro/config'
149+
150+
import image from "@astrojs/image";
151+
152+
export default defineConfig({
153+
integrations: [
154+
image()
155+
]
156+
})
157+
```
158+
123159
## Finding More Integrations
124160

125161
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.

0 commit comments

Comments
 (0)