Next.js Discord

Discord Forum

Why Google can't read my sitemaps ?

Unanswered
Pacific herring posted this in #help-forum
Open in Discord
Pacific herringOP
Everyday I have a script build my sitemaps and Ive added them in Google Search Console. But after months, its still 0 pages discovered :
For example I have this sitemaps for users :
<?xml version="1.0" encoding="UTF-8"?><sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://recomend.app/sitemaps/users/0.xml.gz</loc><lastmod>2026-06-07</lastmod></sitemap></sitemapindex>

And after something like :
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://recomend.app/@loup</loc><lastmod>2026-04-27T08:12:05.348064</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@yozer</loc><lastmod>2026-04-12T14:54:16.532520</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@clemggn</loc><lastmod>2026-04-16T20:13:42.896964</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@safresh</loc><lastmod>2026-03-31T09:28:45.568701</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@lab_arthe</loc><lastmod>2025-01-01T15:24:46.307980</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@meymey</loc><lastmod>2024-10-27T18:15:23.519259</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@skixio</loc><lastmod>2024-11-07T00:57:36.820655</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@mariec</loc><lastmod>2024-11-07T16:52:18.991859</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@naialine</loc>

Also my website 2 years ago had around 10k pages in Google Search Console, now only 2 which is crazy 😂 . I dont understand how we are supposed to debug without waiting 5 months to now if its worse or better...
Thx for your help !

5 Replies

@Pacific herring Everyday I have a script build my sitemaps and Ive added them in Google Search Console. But after months, its still 0 pages discovered : For example I have this sitemaps for users : xml <?xml version="1.0" encoding="UTF-8"?><sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://recomend.app/sitemaps/users/0.xml.gz</loc><lastmod>2026-06-07</lastmod></sitemap></sitemapindex> And after something like : xml <?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://recomend.app/@loup</loc><lastmod>2026-04-27T08:12:05.348064</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@yozer</loc><lastmod>2026-04-12T14:54:16.532520</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@clemggn</loc><lastmod>2026-04-16T20:13:42.896964</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@safresh</loc><lastmod>2026-03-31T09:28:45.568701</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@lab_arthe</loc><lastmod>2025-01-01T15:24:46.307980</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@meymey</loc><lastmod>2024-10-27T18:15:23.519259</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@skixio</loc><lastmod>2024-11-07T00:57:36.820655</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@mariec</loc><lastmod>2024-11-07T16:52:18.991859</lastmod><priority>0.6</priority></url><url><loc>https://recomend.app/@naialine</loc> Also my website 2 years ago had around 10k pages in Google Search Console, now only 2 which is crazy 😂 . I dont understand how we are supposed to debug without waiting 5 months to now if its worse or better... Thx for your help !
how do you generate your sitemap? via npm next-sitemap?
@B33fb0n3 how do you generate your sitemap? via npm `next-sitemap`?
Pacific herringOP
Well no, I build my sitemap with python script because there is to many element to calculate. For example i have 1 millions movies, 4 millions personnalities, so I have to build .xml file each day with script
@Pacific herring Well no, I build my sitemap with python script because there is to many element to calculate. For example i have 1 millions movies, 4 millions personnalities, so I have to build .xml file each day with script
nextjs can handle that too using indexed sitemaps, so I wonder why an extra python script is needed to create that many elements and calculations: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap#generating-multiple-sitemaps

When thats solved, then you get your sitemap with the correct links and google can index the index sitemaps, that then refers to the actual sitemaps, that contain the 5 million links. Like that google will index all index sitemaps and like that also all the links