@itsmatteomanf/astro-robots-txt
v0.1.2
Published
Generate a robots.txt file for your Astro site
Downloads
275
Maintainers
Readme
@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 [email protected]
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:
- Install the required dependencies
pnpm add @itsmatteomanf/astro-robots-txt
npm install @itsmatteomanf/astro-robots-txt
yarn add @itsmatteomanf/astro-robots-txt
- 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.