DEV Community

loading...

Discussion on: How to build a Jamstack multi-language blog with Nuxt.js

Collapse
astagi profile image
Andrea Stagi Author

Hi Yury,

you're right, I used that old package to keep the service part as simple as possible to provide a service both in nuxt app and nuxt config for generated routes :) I haven't tried @nuxtjs/apollo yet but it seems a great package, you just need to provide a configuration and wrap your queries in .gql files, then you can fetch data in your components. The only doubt I have is if you can use a client instance in nuxt.config.js for generating routes, looks like there's a workaround in this issue github.com/nuxt-community/apollo-m...