-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlychee.toml
More file actions
24 lines (21 loc) · 1.09 KB
/
lychee.toml
File metadata and controls
24 lines (21 loc) · 1.09 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
# Accept 3xx redirects as valid (e.g. login redirects return 303)
accept = ["200..=299", "301", "302", "303", "307", "308"]
# Try .mdx and .md when a local file path has no extension (internal page links)
fallback_extensions = ["mdx", "md"]
# Remap file:// paths for static assets: Next.js serves these from public/,
# but lychee resolves absolute paths against --root-dir (src/pages/).
remap = [
# Any file with an extension in src/pages/ is a static asset served from public/.
# Internal page links have no extension (resolved via fallback_extensions) so they are unaffected.
"(file://.+)/src/pages/(.+\\.(?:svg|png|jpg|jpeg|gif|ico|webp|pdf|mp4|webm|nix|json)) $1/public/$2",
]
exclude = [
# Local development server URLs — only valid when devguard is running locally
"http://localhost",
# GitHub rate-limits unauthenticated requests heavily; set GITHUB_TOKEN to check these
"github\\.com",
# DevGuard public API endpoints require bearer-token authentication
"api\\.main\\.devguard\\.org",
# DoD media server blocks automated crawlers
"media\\.defense\\.gov",
]