Sitemap generator config from https://github.com/SergeyMyssak/nextjs-sitemap/blob/master/examples/exportPathMap/sitemap-generator.js
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