Walks every post's <img>/<a> (markdown + raw HTML, .md/.mdx, plus the frontmatter cover field) across both content collections, flags missing local assets and internal links that don't match any real route, and can optionally probe external refs for dead hosts (HEAD-then-GET, cached, concurrency-capped, off by default). Wired into `npm run build`'s postbuild step in warn mode — it can never fail the build, only crash-guards + logs a warning. External checks are a separate on-demand npm run audit:links:full since they touch the network and would make every build network-dependent otherwise. Report artefacts land in .ai/link-audit/ (gitignored). First real run: 0 missing local assets, 4 broken internal links (dead pre-Astro /Projects/... style paths from the old site structure), 18 dead external refs with --external (6 confirmed, 12 low-confidence itch.io-style 403s that are more likely bot-blocking than actually dead — flagged as such in the report rather than reported at face value). Ticks the "Link & image audit" wishlist item in GOAL.md; "Fix what the audit finds" is next and deliberately untouched here.
31 lines
411 B
Plaintext
31 lines
411 B
Plaintext
# build output
|
|
dist
|
|
|
|
# dependencies
|
|
node_modules/
|
|
.snowpack/
|
|
|
|
# logs
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# environment variables
|
|
.env
|
|
.env.production
|
|
|
|
# macOS-specific files
|
|
.DS_Store
|
|
|
|
# Local Netlify folder
|
|
.netlify
|
|
netlify
|
|
|
|
.astro
|
|
.idea
|
|
.vercel
|
|
|
|
# link-image-audit report + external-link cache (regenerated by npm run build
|
|
# / npm run audit:links) — see scripts/audit/link-image-audit.mjs
|
|
.ai/
|