Next.js Discord

Discord Forum

SEO Optimization and Automatic Indexing for Blog Pages in Next.js with RTK Query

Unanswered
Cuvier’s Dwarf Caiman posted this in #help-forum
Open in Discord
Cuvier’s Dwarf CaimanOP
I’m building a blog-style site with Next.js and RTK Query, fetching posts dynamically from an API. In Google Search Console, I see that many of my pages aren’t being indexed properly. I need a comprehensive strategy so that whenever a new article is published, the following are updated automatically:

robots.txt to tell search engines which routes to crawl (and which to ignore)

sitemap.xml to list all site URLs and aid discovery

On top of that, I want to implement strong on-page SEO (dynamic meta tags, Open Graph, use of next/head, etc.) and ensure an optimal setup and verification in Google Search Console.

0 Replies