1.1.4 • Published 4 years ago

@newhighsco/next-plugin-robots v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

next-plugin-robots NPM version

Next.js plugin for generating a robots.txt during next export

Installation

Install Next.js and @newhighsco/next-plugin-robots:

npm install --save next @newhighsco/next-plugin-robots

Usage

Create a next.config.js in your project:

// next.config.js
const withRobots = require('@newhighsco/next-plugin-robots')
module.exports = withRobots({
  robots: {
    /* config options here */
  }
})

Options

NameTypeDefault
userAgent*string*
allowPaths?array-
disallowPaths?array-
filename?stringrobots.txt
sitemap?objectSee @newhighsco/next-plugin-sitemap options

CHANGELOG

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago