bizihive/next-sitemap.config.js
2024-01-11 18:53:43 +03:30

24 lines
658 B
JavaScript

/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.SITE_URL || 'https://flierland.ca',
generateRobotsTxt: true, // (optional)
exclude: ['/dashboard*'],
robotsTxtOptions: {
policies: [
{
userAgent: '*',
allow: '/',
},
],
},
transform: async (config, path) => {
// Use default transformation for all other cases
return {
loc: path, // => this will be exported as http(s)://<config.siteUrl>/<path>
changefreq: config.changefreq,
priority: 1.0,
lastmod: config.autoLastmod ? new Date().toISOString() : undefined,
}
},
// ...other options
}