Google indexing mostly JSON and Javascript files of my next.js website

677 Views Asked by At

I have a problem with Google indexing of Next.js (we use SSR). For SEO is important to index .HTML files. But Googlebot index mostly JSON and Javascript files. For example, yesterday he made 540 requests to my website ( 215 Javascript, 84 JSON, and only 30 HTML). So question is, how to give Googlebot to index mostly HTML files. Because of this problem, I can't index all pages of my websites. Googlebot has a limited number of requests to the site and they go to Javascript or JSON files. My website is skillcombo.com.

1

There are 1 best solutions below

3
Tobias Sporer On

You should create a good sitemap.xml and provide that to the Google Search Console for your website.