#!/bin/bash set -e # Auto-provision Lychee Rust Binary if missing if [ ! -f ./lychee ]; then echo "📥 Downloading Lychee Link Checker (v0.15.1)..." curl -sSLo lychee.tar.gz https://github.com/lycheeverse/lychee/releases/download/v0.15.1/lychee-v0.15.1-x86_64-unknown-linux-gnu.tar.gz tar -xzf lychee.tar.gz lychee rm lychee.tar.gz chmod +x ./lychee fi echo "🚀 Starting Deep Link Assessment (Lychee)..." # Exclude localhost, mintel.me (internal infrastructure), and common placeholder domains # Scan markdown files and component files for hardcoded dead links ./lychee \ --exclude "localhost" \ --exclude "127.0.0.1" \ --exclude "mintel\.me" \ --exclude "example\.com" \ --exclude-mail \ --accept 200,204,401,403 \ "./content/**/*.mdx" "./content/**/*.md" "./app/**/*.tsx" "./components/**/*.tsx" echo "✅ All project source links are alive and healthy!"