1.0.14 • Published 6 years ago
@newhighsco/next-plugin-sitemap v1.0.14
next-plugin-sitemap 
Next.js plugin for generating an XML sitemap during next export
Installation
Install Next.js and @newhighsco/next-plugin-sitemap:
npm install --save next @newhighsco/next-plugin-sitemapUsage
Create a next.config.js in your project:
// next.config.js
const withSitemap = require('@newhighsco/next-plugin-sitemap')
module.exports = withSitemap({
sitemap: {
/* config options here */
}
})Options
| Name | Type | Default |
|---|---|---|
hostname* | string | - |
ignorePaths? | array | ['/404', '/'] |
filename? | string | sitemap.xml |