Skip to content

Commit 94159f2

Browse files
docosaurus throw error on broken links
1 parent d45fa42 commit 94159f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docusaurus.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,9 @@ const config: Config = {
117117
};
118118

119119
export default config;
120+
// docusaurus.config.js
121+
module.exports = {
122+
onBrokenLinks: 'throw',
123+
onBrokenAnchors: 'throw',
124+
onBrokenMarkdownLinks: 'throw',
125+
};

0 commit comments

Comments
 (0)