Open YsarocK opened 2 years ago
In sitemap options inside nuxt.config.js, you can exclude with the following syntax:
sitemap: {
exclude: [
'/**/*.js', // this should work
'/reservation/**/*.js', // this should also work
'/secret',
'/admin/**',
'/graphql/**',
],
defaults: {
// ...
}
}
Hello !
I'm trying to use the sitemap module (which is, except this, quite usefull). My pages folders are like this : /pages/reservation/index.vue with external .js & .scss files.
In the sitemap, i have both /reservation & /reservation/reservation created routes.
I've tried to exclude
"*/**.js"
in nuxt.config.js.Am i missing something ?
Thanks for your help !