包详细信息

@itsmatteomanf/astro-robots-txt

itsmatteomanf291MIT0.2.0

Generate a robots.txt file for your Astro site

astro-integration, astro-component, withastro, astro

自述文件

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