Browse Source

fix: add /evals page to sitemap generation (#7102)

Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
Daniel 4 months ago
parent
commit
253d5acc09
1 changed files with 17 additions and 1 deletions
  1. 17 1
      apps/web-roo-code/next-sitemap.config.cjs

+ 17 - 1
apps/web-roo-code/next-sitemap.config.cjs

@@ -52,6 +52,22 @@ module.exports = {
   additionalPaths: async (config) => {
     // Add any additional paths that might not be automatically discovered
     // This is useful for dynamic routes or API-generated pages
-    return [];
+    // Add the /evals page since it's a dynamic route
+    return [{
+      loc: '/evals',
+      changefreq: 'monthly',
+      priority: 0.8,
+      lastmod: new Date().toISOString(),
+    }];
+    
+    // Add the /evals page since it's a dynamic route
+    result.push({
+      loc: '/evals',
+      changefreq: 'monthly',
+      priority: 0.8,
+      lastmod: new Date().toISOString(),
+    });
+    
+    return result;
   },
 };