nuxt.jsnetlify-cmsnuxt3.jsnuxt-content

Replicating nuxt/content functionality in Nuxt 3


I'm experimenting with Nuxt 3, Netlify and Netlify CMS. I'm familiar with vue but new to Nuxt.

I'm aware that nuxt/content is not yet compatible with Nuxt 3. Without nuxt/content, what would be the best way to load all the files that Netlify CMS is creating in /content and supply them to my vue components?

So far I've tried creating some server/middleware, which collects the content using node JS fs module but I'm unsure how best to supply it to the app. Or perhaps I could write a server-side plugin?


Solution

  • Nuxt Content v2 has been released, and it should have the support of Nuxt 3.