nuxtent-module icon indicating copy to clipboard operation
nuxtent-module copied to clipboard

nuxt.config.js generate.routes with callback instead of an array not supported?

Open ghost opened this issue 7 years ago • 1 comments

"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.

This question is available on Nuxt.js community (#c101)

ghost avatar Dec 15 '17 18:12 ghost

Same problem here. Using Nextent in combinaison with dynamic routes (as explained in Nuxt doc) fails.

florentb avatar Jun 21 '19 10:06 florentb