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

mgrandl
3
mgrandl
commented 3 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))

but I can't get the module to build for whatever reason, or else I'd submit a pull request.

1
florentb
0
florentb
commented 2 years ago

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

0
Informations
QuestionUnresolved
#c101 - Created 3 years ago