Rendering Metadata with NextJS 13

Is there a good way to render metadata using NextJS 13’s new recommended way. It seems like the renderMetaTags strategy in react-datocms won’t work in this case.

Hi @sgrover , and welcome to the Dato forums!

Have you tried using the toNextMetadata() function of react-datocms? https://github.com/datocms/react-datocms/blob/master/docs/meta-tags.md#tonextmetadata

That should get you an object compatible with Next’s dynamic metadata information.

1 Like

Awesome, looks like I missed that in the docs. Thanks!

1 Like