2.0.0 • Published 9 months ago

astro-dead-links v2.0.0

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

astro-dead-links 🔗

This Astro integration will automatically remove all the dead links in your website.

Installation

There are two ways to add integrations to your project. Let's try the most convenient option first!

(experimental) astro add command

Astro includes a CLI tool for adding first party integrations: astro add. This command will:

  1. (Optionally) Install all necessary dependencies and peer dependencies
  2. (Also optionally) Update your astro.config.* file to apply this integration

To install astro-dead-links, run the following from your project directory and follow the prompts:

# Using NPM
npx astro add astro-dead-links
# Using Yarn
yarn astro add astro-dead-links
# Using PNPM
pnpx astro add astro-dead-links

Install dependencies manually

First, install the astro-dead-links integration like so:

npm install astro-dead-links

Then, apply this integration to your astro.config.* file using the integrations property:

astro.config.mjs

import { defineConfig } from "astro/config";
import deadLinks from "astro-dead-links";

export default defineConfig({
	integrations: [deadLinks()],
});

Getting started

The utility should now automatically remove all the deadlinks from your website and point you to their origin.

License

Hippocratic License

2.0.0

9 months ago

0.0.1

2 years ago