Skip to content

fix: resolve link checker race condition with Vite assets#96

Merged
ronaldtse merged 1 commit intomainfrom
fix/link-checker-race-condition
May 6, 2026
Merged

fix: resolve link checker race condition with Vite assets#96
ronaldtse merged 1 commit intomainfrom
fix/link-checker-race-condition

Conversation

@ronaldtse
Copy link
Copy Markdown
Contributor

The link checker was using --base-url https://www.calconnect.org/ which checks all links against the live site. Since the link checker and deployment run concurrently on push to main, the checker would see stale Vite asset hashes that hadn't been deployed yet, producing thousands of false-positive 404s.

Switch to --base _site/ which resolves local paths from the built output and still checks external URLs against the internet.

Closes #95, Closes #94, Closes #92, Closes #91, Closes #90

Use --base _site/ instead of --base-url to check links against the
local build output rather than the live site. This eliminates false
positives when the link checker runs before deployment completes.

Closes #95, Closes #94, Closes #92, Closes #91, Closes #90
@ronaldtse ronaldtse merged commit 03ff011 into main May 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Link Checker Report Link Checker Report Link Checker Report Link Checker Report Link Checker Report

1 participant