Enable strict URL validation (#147)

This commit is contained in:
Piotr Rogowski 2023-09-11 15:43:18 +02:00 committed by GitHub
parent a0032a8c36
commit 3fb2a51cf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -27,8 +27,12 @@ const config = {
tagline: 'Free Open Motorsports ECU',
url,
baseUrl: '/',
// strict URL validation
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
onBrokenMarkdownLinks: 'throw',
onDuplicateRoutes: 'throw',
noIndex: false, // adds <meta name="robots" content="noindex, nofollow"> to every page
favicon: 'img/icons/favicon.ico',
trailingSlash: true, // adds trailing slash to all links since we are using Cloudflare Pages