This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
forked from nuxt-community/sitemap-module
-
Notifications
You must be signed in to change notification settings - Fork 12
How to exclude URLs? #21
Comments
I found one way:
|
Here's the official way to exclude pages or files you don't want to include in your
export default defineNuxtConfig({
modules: [
[
'@funken-studio/sitemap-nuxt-3',
{
generateOnBuild: true,
hostname: process.env.VITE_APP_URL,
cacheTime: 1,
exclude: ['/category', '/200.html', '/404.html'],
defaults: {
changefreq: 'daily',
priority: 1,
lastmod: new Date().toISOString()
}
}
]
]
}) |
Thank you! This also solves my problem with
showing errors because But neither |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Even with
the site seems to be crawled and many URLs are put into the sitemap, some of which I don't want, e.g. 200.html and 404.html.
How can I filter out these URLs?
The text was updated successfully, but these errors were encountered: