@itsmatteomanf/astro-robots-txt

0.1.1 • Public • Published

@itsmatteomanf/astro-robots-txt

This is an Astro integration that allows you to easily add a robots.txt file to your Astro site.

Usage

Prerequisites

You need to be using astro@4.0.0 or higher.

Installation

Install the integration automatically using the Astro CLI:

pnpm astro add @itsmatteomanf/astro-robots-txt
npx astro add @itsmatteomanf/astro-robots-txt
yarn astro add @itsmatteomanf/astro-robots-txt

Or install it manually:

  1. Install the required dependencies
pnpm add @itsmatteomanf/astro-robots-txt
npm install @itsmatteomanf/astro-robots-txt
yarn add @itsmatteomanf/astro-robots-txt
  1. Add the integration to your astro config
+import robotsTxt from "@itsmatteomanf/astro-robots-txt";

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

Configuration

TODO

Licensing

MIT Licensed. Made with ❤️ by Matteo Manfredi.

Package Sidebar

Install

npm i @itsmatteomanf/astro-robots-txt

Weekly Downloads

32

Version

0.1.1

License

MIT

Unpacked Size

15.4 kB

Total Files

6

Last publish

Collaborators

  • itsmatteomanf