Created
March 10, 2021 20:29
-
-
Save mxro/e1da628f4edc77248bf237e996b6c2fe to your computer and use it in GitHub Desktop.
Sitemap generator config from https://github.com/SergeyMyssak/nextjs-sitemap/blob/master/examples/exportPathMap/sitemap-generator.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { configureSitemap } = require('@sergeymyssak/nextjs-sitemap'); | |
const Sitemap = configureSitemap({ | |
baseUrl: 'https://example.com', | |
exclude: ['/admin'], | |
excludeIndex: true, | |
pagesConfig: { | |
'/about': { | |
priority: '0.5', | |
changefreq: 'daily', | |
}, | |
}, | |
isTrailingSlashRequired: true, | |
nextConfigPath: __dirname + '/next.config.js', | |
targetDirectory: __dirname + '/public', | |
pagesDirectory: __dirname + '/src/pages', | |
}); | |
Sitemap.generateSitemap(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment