Follow the CCIP v2 redirect in linkcheck - #4266
Open
thodges-gh wants to merge 2 commits into
Open
thodges-gh wants to merge 2 commits into
thodges-gh wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
👋 thodges-gh, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
thodges-gh
enabled auto-merge (squash)
October 2, 2026 21:43
vercel.json 301-redirects /ccip/v2 and /ccip/v2/:path* to /ccip and /ccip/:path*, so those links are valid on the live site but have no file in the static build. Add lychee remap rules for the redirect, with a fixture and checker that keep a missing page or anchor failing and leave /ccip/v1 and /ccip/v20 untouched.
thodges-gh
force-pushed
the
fix/linkcheck-ccip-v2-remap
branch
from
October 2, 2026 22:19
adf92b3 to
d27ab56
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
linkcheck-internalruns lychee 0.24.2 withoffline = trueover.vercel/output/static. A link to/ccip/v2/evm/getting-startedfailed because no static file exists at that path, while/ccip/evm/getting-startedpassed. Both URLs are correct on the live site:vercel.jsonreturns 301 from/ccip/v2and/ccip/v2/:path*to/ccipand/ccip/:path*.This PR adds lychee
remaprules that mirror those two redirects, so the checker resolves the v2 links the way a browser would. A missing page and a missing anchor still fail, and/ccip/v1and/ccip/v20are not rewritten.The query rule is
"/ccip/v2\\? /ccip?". The?is escaped, because an unescaped?is a regex quantifier: that form rewrote/ccip/v1/...into/ccip?1/..., and the full site check reported 21518 errors..github/workflows/test.ymlgainslychee.toml,vercel.json, andsrc/scripts/link-check/**in thecontentpath filter so this check runs when the checker changes, plus a step that checks the pass fixture beforeBuild Site.