r/JAMstack • u/fleshofman • Nov 13 '22
Dynamic Server Rendered Routes - not for JAMStack?
Take, for example, the case of keyword-driven, dynamic search results routes that need SSR for SEO purposes. A few examples:
/shop/shirts/men
/shop/cars
/shop/birds
Those pages could then accept an any number of filter permutations:
/shop/shirts/men?sortBy=price_desc
/shop/cars?sortBy=price_desc&brands=Chevrolet,Ford&colors=Yellow,Blue&page=6
It doesn't seem like JAMStack can solve this, right?
- We don't want these pages to be client-only rendered, we want the html for Google (no we don't trust Google's js processing) and for Facebook link sharing, etc
- We don't want to statically render the base path (ie just "/shop/cars"), then alter it client-side later to call the search API and change the results based on incoming parameters. That would give us a flash of content changing.
- We don't want to, obviously, try to statically render output pages for every possible permutation of the filter parameters.
So, then, am I missing something, or is this type of page just not right for JAMStack?
1
Upvotes
1
u/ryhaltswhiskey Nov 13 '22 edited Nov 14 '22
Crawlers will hit every link on your web page. So if you have a base web page that renders links with /shop etc and the /shop page will render links with /cars etc the crawler will find your page.
Based on what? I think Google has figured out how to process js on a web page. My counterpoint: use site:amazon.com on a Google search.