-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlychee.toml
More file actions
58 lines (50 loc) · 1.77 KB
/
lychee.toml
File metadata and controls
58 lines (50 loc) · 1.77 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
55
56
57
58
# Cache the results of Lychee if ran locally in order to minimise the chance of rate limiting
cache = true
# Discard all cached requests older than this duration.
max_cache_age = "1d"
# Ignore all private link (such as localhost) to avoid errors
exclude_all_private = true
# HTTP status code: 429 (Too Many Requests) will also be treated as a valid link if Lychee gets rate limited
accept = [200, 201, 204, 206, 300, 301, 302, 303, 304, 307, 308, 999]
# Base URL or website root directory to check relative URLs.
base_url = "https://nuxt.com/"
no_progress = true
# Enable checking of fragments/anchors in links (e.g., #section-name)
# include_fragments = true
# Follow redirects
max_redirects = 1
# Set user agent to avoid bot blocking
user_agent = "Mozilla/5.0 (compatible; lychee link checker)"
# Set reasonable timeout and retry values
timeout = 20
retry_wait_time = 2
max_retries = 6
# Explicitly exclude some URLs
exclude = [
"https://twitter.nuxt.dev/",
"https://www.webpagetest.org/",
"https://stackoverflow.com/help/minimal-reproducible-example",
"https://gsap.com/",
# dummy example URLs
"https://myawesome-lib.js/",
"https://awesome-lib.js/",
"https://myawesome-lib.css/",
"https://awesome-lib.css/",
"https://mycdn.org/",
"https://nuxt.new/c/v4",
"https://nuxt.new/s/v4",
"https://www.npmjs.com/",
# TODO: fix upstream API issues
"https://nuxt.com/modules",
# single-quotes are required for regexp
'https://res.cloudinary.com/nuxt/video/upload/(.*)',
'https://www.npmjs.com/package/(.*)',
'(https?:\/\/github\.com\/)(.*\/)(generate)',
"https://github.com/nuxt-contrib/vue3-ssr-starter/generate",
# excluded URLs from test suite
"http://auth.com",
"http://example1.com/",
"http://example2.com/",
"http://example3.com/",
"~images/main-bg.jpg",
]