Exclude Pages
Exclude pages from link checking using the excludePages option. When a page matches, none of its links will be inspected.
This is useful when a page renders many external links you don't control or when an entire section of your site should be skipped.
Usage
nuxt.config.ts
export default defineNuxtConfig({
linkChecker: {
excludePages: [
'/external-links', // Exact match
'/embed/**', // All embed routes
/^\/generated\//, // RegExp pattern
],
},
})This option supports the same pattern types as excludeLinks: exact strings, wildcards, and RegExp.
Difference from excludeLinks
| Option | Effect |
|---|---|
excludeLinks | Skips specific link URLs from being checked on any page |
excludePages | Skips all link checking on matched pages |
Was this page helpful?