-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.lychee.toml
More file actions
54 lines (46 loc) · 1.73 KB
/
Copy path.lychee.toml
File metadata and controls
54 lines (46 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# lychee link checker configuration
# Docs: https://lychee.cli.rs/configuration/
# Only check HTTP/HTTPS links (no mailto:, tel:, etc.)
# Input files/directories are passed as CLI arguments: lychee './dist/**/*.html'
scheme = ["https", "http"]
# Timeout per request in seconds
timeout = 20
# Number of retries on failure (HEAD with automatic GET fallback is built in)
max_retries = 3
# Number of concurrent requests
max_concurrency = 8
# Root directory for resolving root-relative links (e.g. /tutorials/...) in local HTML files
root_dir = "./dist"
# Cache results across runs to avoid redundant checks
cache = true
max_cache_age = "1d"
# Exclude known false-positive domains:
# (sites that block automated HEAD/GET requests or require browser-like headers)
# Values are treated as regular expressions.
exclude = [
# The custom 404 page intentionally returns HTTP 404 and must not fail link checks
"^https://hawk-gt1191\\.de/404/?$",
# Cloudflare-protected
"^https://codepen\\.io",
# Microsoft (blocks automated requests)
"^https://marketplace\\.visualstudio\\.com",
# Facebook/Meta (blocks bots)
"^https://developers\\.facebook\\.com",
# Google Fonts (redirects on HEAD)
"^https://fonts\\.google\\.com",
"^https://fonts\\.googleapis\\.com",
"^https://fonts\\.gstatic\\.com",
# Postbank (bot protection)
"^https://(www\\.)?postbank\\.de",
# MyFonts (redirect behavior)
"^https://www\\.myfonts\\.com",
# Unsplash (bot protection)
"^https://(www\\.)?unsplash\\.com",
# LinkedIn (blocks bots)
"^https://(www\\.)?linkedin\\.com",
# Google Drive (redirects on HEAD)
"^https://drive\\.google\\.com",
]
# HTTP status codes considered valid
# 429 = Too Many Requests (rate limit, not a broken link)
accept = ["200..=299", "429"]