-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext-sitemap.config.js
23 lines (23 loc) · 1.03 KB
/
next-sitemap.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
siteUrl: 'https://mindect.vercel.app', // Your website URL
generateRobotsTxt: true, // To generate a robots.txt file
changefreq: 'daily', // Frequency of site changes
priority: 1, // Priority for search engines (1 is highest)
sitemapSize: 5000, // Max number of URLs per sitemap
generateIndexSitemap: false, // Single sitemap
exclude: ['/admin/*'], // Exclude specific paths, e.g., admin
transform: async (config, path) => {
return {
loc: path, // The path of the URL
changefreq: config.changefreq, // Frequency
priority: config.priority, // Priority for this URL
lastmod: new Date().toISOString(), // Last modified date
}
},
robotsTxtOptions: {
policies: [{ userAgent: '*', allow: '/' }], // Allow all user agents
additionalSitemaps: [
'https://mindect.vercel.app/sitemap.xml', // Your sitemap URL
],
},
};