By default, links will be scanned when you run your build.
When building and deploying your app in a CI, you may like to disable the deployment if there are any broken links.
To do so you can enable the failOnError option. This will exit the process with a non-zero exit code.
export default defineNuxtConfig({
linkChecker: {
failOnError: true,
},
})
Check the Generate Reports guide for more details.
If you want to disable build link scanning, you can set runOnBuild to false in your nuxt.config:
export default defineNuxtConfig({
linkChecker: {
runOnBuild: false,
},
})