I have a Nuxt app which utilizes a headless CMS and static site generation to generate the landing page and all article pages at build time. On my landing page I'm displaying the latest articles which can be statically generated with no problem, I simply have to rebuild the landing page everytime a new article gets added.
Now to view all available articles the user (and search engine bot) has to navigate to the "search" page which lists all articles by default (when no search query was entered). When a search query is entered or the search URL is opened with query parameters directly (e.g. https://domain.example/search?param=hello
) a HTTP request is sent to the CMS and the listed articles get refreshed.
Now my question is, in order to make the search engine bot find and index every individual article, should I statically generate the default search page with the list of all articles and mark any other search URL which the bot might find (through internal or external links) as canonical to the default search page? Or should I use an entirely different approach?