Open ghost opened 6 years ago
"generate.routes" must be an array
Please add support for callback function routes. I got it to work by changing those lines
https://github.com/nuxt-community/nuxtent-module/blob/8f7afaa87706b27b30b927371eadd88b2a2b6ec2/lib/content/build.js#L61-L65
to support functions by doing nuxtOpts.generate.routes().then(routes => routes.concat(routeData))
nuxtOpts.generate.routes().then(routes => routes.concat(routeData))
but I can't get the module to build for whatever reason, or else I'd submit a pull request.
Same problem here. Using Nextent in combinaison with dynamic routes (as explained in Nuxt doc) fails.
"generate.routes" must be an array
Please add support for callback function routes. I got it to work by changing those lines
https://github.com/nuxt-community/nuxtent-module/blob/8f7afaa87706b27b30b927371eadd88b2a2b6ec2/lib/content/build.js#L61-L65
to support functions by doing
nuxtOpts.generate.routes().then(routes => routes.concat(routeData))
but I can't get the module to build for whatever reason, or else I'd submit a pull request.