Dynamically generated routes are not excluded
madiyetov opened this issue · 1 comments
madiyetov commented
Description
If we pass exclude
property with glob pattern for dynamically generated routes, it's not applied:
export default {
sitemap: {
exclude: ['**/dynamic-route']
}
}
In this line, the pattern from exclude
is applied inside staticRoutes
to static routes, but routes coming from promisifyRoute(options.routes)
are not filtered.
nuxt@2.17.0
NicoPennec commented
Hi @madiyetov,
As explained in the documentation of exclude
property, it's only to exclude routes from staticRoutes
, before caching data (see here)
if you need to exclude some dynamics routes, you have to customize your routes
function or use the filter
function.