1.1.4 • Published 4 years ago
@newhighsco/next-plugin-robots v1.1.4
next-plugin-robots
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
Name | Type | Default |
---|---|---|
userAgent* | string | * |
allowPaths? | array | - |
disallowPaths? | array | - |
filename? | string | robots.txt |
sitemap? | object | See @newhighsco/next-plugin-sitemap options |