Well when I search our website through Google site:allsports.app
. I notice first that it correctly limited itself to what is (was) defined in the sitemap. I also notice that for most pages it does not render the JavaScript in the preview, whether SEO is important enough (right now) to warrant server-side rendering is still something we have to internally discuss. Most of our traffic comes far and wide through word of mouth and other channels anyways.
However one other thing confused me: the preview for our main page is just the cookie banner. This means that Google is actually rendering the JavaScript, but it picks the most illogical preview to put on there.
I've found no sources anywhere indicating how I can influence the preview through robots.txt or sitemaps... So how can I make it not use the banner but instead a custom message (like what is on the about page). The main site is just a search bar for other resources, so not much text on it anyways.
meta
tag and thedata-nosnippet="data-nosnippet"
attribute to limit search result snippets.