I'm building a marketing/consumer site for my company, migrating away from WordPress (thank god) to a combo of Next and Prismic. Currently, our consumer site has about 600 pages to account for multiple product and landing pages for each of our 35+ dealers, but I'd like to move away from managing content for 600 pages, as all of the dealers share pages and content; the only thing that number of pages serves is allowing us to have enhanced SEO and url paths, so that each product page is a sub page of the dealers i.e. san-diego-ca/product-page
sacramento-ca/product-page
. Hopefully this is enough info to clarify my broader question.
I'm using SSR
and getServerSideProps
, and I want to be able to have the same sort of URL structure, with each individual dealer having it's own pages with the specific url path, but they don't need to have their own page content. It all shares the same stuff. I have a page in Prismic called /interior-doors
. With Next is there a way to allow that /interior-doors
page to be accessed from mysite.com/interior-doors
as well as mysite.com/sacramento-ca/interior-doors
without needing to have 2 separate pages?
Thanks in advance, I can add as much code or as many details as necessary.