Skip to content

Commit 34b9132

Browse files
refactor: implement sitemap index method for better SEO
- Enable sitemap index generation in next-sitemap config - Split sitemaps into 50 URLs each for better organization - Remove old static sitemap.xml from public directory - Generated 212 individual sitemaps with proper index - Configure robots.txt to reference main sitemap index
1 parent bcf8bde commit 34b9132

2 files changed

Lines changed: 8 additions & 60 deletions

File tree

next-sitemap.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22
module.exports = {
33
siteUrl: 'https://serptools.github.io',
44
generateRobotsTxt: true,
5-
generateIndexSitemap: false,
5+
generateIndexSitemap: true, // Enable sitemap index
6+
sitemapSize: 50, // Split into smaller sitemaps (50 URLs each for better organization)
67
outDir: 'out',
78
changefreq: 'weekly',
89
priority: 0.7,
910
exclude: ['/dev/*'],
11+
additionalSitemaps: [
12+
// Add any additional sitemaps if needed
13+
],
1014
robotsTxtOptions: {
15+
additionalSitemaps: [
16+
'https://serptools.github.io/sitemap.xml', // Main sitemap index
17+
],
1118
policies: [
1219
{
1320
userAgent: '*',

public/sitemap.xml

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)