Exclude URLs from inspection by adding them to the excludeLinks array.
export default defineNuxtConfig({
linkChecker: {
excludeLinks: [
'/about',
'/contact',
],
},
})
Using radix3 route matching:
export default defineNuxtConfig({
linkChecker: {
excludeLinks: [
'/admin/**', // All admin routes
'/api/*', // Direct children only (/api/users, not /api/users/1)
'/blog/*/comments', // Nested wildcards
],
},
})
export default defineNuxtConfig({
linkChecker: {
excludeLinks: [
/^\/blog\/\d+$/, // Blog posts with numeric IDs
/\.(pdf|zip)$/, // File downloads
],
},
})
export default defineNuxtConfig({
linkChecker: {
excludeLinks: [
'https://example.com/**',
/^https:\/\/.*\.example\.com/,
],
},
})
If you have dynamic routes that aren't prerendered:
export default defineNuxtConfig({
linkChecker: {
excludeLinks: [
'/user/**',
'/products/**',
],
},
})
export default defineNuxtConfig({
linkChecker: {
excludeLinks: [
'/dashboard/**',
'/profile/**',
],
},
})
export default defineNuxtConfig({
linkChecker: {
excludeLinks: [
/#.*/, // All hash links
],
},
})