Contentlayer looks like a super promising library (still in alpha) to import data from CMS platforms or local files like markdown into your application.
Took me less than 5 minutes to cleanly separate and connect MDX files to a Next.js layout.
github.com/contentlayerde…
