Skip to main content

Strict builds

Four checks are set to fail rather than warn:

SettingFails the build when
onBrokenLinksa link points at a page that does not exist
onBrokenAnchorsa link points at a heading that does not exist
markdown.hooks.onBrokenMarkdownLinksa relative Markdown link resolves to nothing
markdown.hooks.onBrokenMarkdownImagesan image is missing

The alternative is a warning that scrolls past in a CI log and a published site with dead links.

To be more lenient during a migration:

export default createConfig({
title: 'voraus.example',
projectName: 'voraus-example',
config: { onBrokenLinks: 'warn' },
})