structured data with Next.js and DatoCMS

We use for rich snippets on Google throughout our website, mainly FAQs, product reviews, and video. Now that we are migrating website to DatoCMS and NextJS, I need to take this into account as well.

Does anyone have any suggestions for handling/serving structured data from DatoCMS to NextJS pages?

I am planning to building two models in DatoCMS:

  • FAQ for handling FAQs data for
  • Reviews for handling product reviews
  • In the product and page model I would have relational links to the above FAQ and Reviews models

Some of my basic questions:

  1. Is it best to save Json-ld in the DatoCMS models and insert that directly to Header in Next.JS? Or would you advice to generate code directly in Next.JS and just fetch content and properties from DatoCMS?

  2. Any recommendation on NexJS or React package to handle on page? Maybe GitHub - garmeeh/next-seo: Next SEO is a plug in that makes managing your SEO easier in Next.js pr?

Thanks on the input.


No-one is using on the website :slight_smile: ?