mirror of
https://github.com/kremalicious/astro-redirect-from.git
synced 2024-11-22 09:57:03 +01:00
reduce install commands
This commit is contained in:
parent
5796f2cf34
commit
8b9d845266
@ -42,12 +42,7 @@ The plugin is designed to work without configuration, especially if your project
|
|||||||
```bash
|
```bash
|
||||||
cd yourproject/
|
cd yourproject/
|
||||||
|
|
||||||
# Using NPM
|
|
||||||
npx astro add astro-redirect-from
|
npx astro add astro-redirect-from
|
||||||
# Using Yarn
|
|
||||||
yarn astro add astro-redirect-from
|
|
||||||
# Using PNPM
|
|
||||||
pnpm astro add astro-redirect-from
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If installing manually:
|
If installing manually:
|
||||||
@ -65,7 +60,7 @@ import redirectFrom from 'astro-redirect-from'
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
// ...
|
// ...
|
||||||
integrations: [
|
integrations: [
|
||||||
// make sure this is listed before any hosting integration
|
// make sure this is listed BEFORE any hosting integration
|
||||||
redirectFrom()
|
redirectFrom()
|
||||||
]
|
]
|
||||||
// ...
|
// ...
|
||||||
|
Loading…
Reference in New Issue
Block a user