DEV Community

loading...

Discussion on: Building My New Blog | Nuxt Vs Gridsome

Collapse
chiubaca profile image
Alex Chiu Author

I guess it would be possible to, fetch the posts at build time in a module/plugin and then transforming the results into a format supported by Nuxt Content

I... didn't know this was possible! Will need to research into this a bit more.

A small part of me wants the two projects to be merged together. Imagine having a GraphQL data layer in Nuxt! 🤯

Collapse
brpaz profile image
Bruno Paz • Edited

I... didn't know this was possible! Will need to research into this a bit more.

Never tried anything similar myself, but Nuxt has Hooks that allows to run code at specific points of Nuxt Lifecycle including build. This is how for example nuxt sitemap plugin works to generate a sitemap at build time. So in theory, it should be possible.

A small part of me wants the two projects to be merged together. Imagine having a GraphQL data layer in Nuxt

Yes. I think it would be a cool add-on on top of Next. It could work similarly to Nuxt Content but with a GraphQL API.