personal website (jaspermayone.com)
1/** @type {import('next-sitemap').IConfig} */
2module.exports = {
3 siteUrl: process.env.SITE_URL || "https://www.jaspermayone.com",
4 generateRobotsTxt: false, // Using Next.js native robots.ts instead
5 generateIndexSitemap: true,
6 exclude: ["/icon.png", "/robots.txt", "/blank", "/api/*"],
7 priority: 0.7,
8 changefreq: "weekly",
9 transform: async (config, path) => {
10 // Higher priority for main pages
11 const highPriority = ["/", "/portfolio", "/contact"];
12 const mediumPriority = ["/now", "/uses", "/elsewhere", "/colophon"];
13
14 let priority = 0.5;
15 let changefreq = "monthly";
16
17 if (highPriority.includes(path)) {
18 priority = 1.0;
19 changefreq = "weekly";
20 } else if (mediumPriority.includes(path)) {
21 priority = 0.7;
22 changefreq = "weekly";
23 }
24
25 return {
26 loc: path,
27 changefreq,
28 priority,
29 lastmod: config.autoLastmod ? new Date().toISOString() : undefined,
30 };
31 },
32};