Skip to content

docs: fix site adapter matcher API name - #2616

Open
16Miku wants to merge 1 commit into
webbrain-one:mainfrom
16Miku:docs/fix-adapter-matches-api
Open

docs: fix site adapter matcher API name#2616
16Miku wants to merge 1 commit into
webbrain-one:mainfrom
16Miku:docs/fix-adapter-matches-api

Conversation

@16Miku

@16Miku 16Miku commented Jul 28, 2026

Copy link
Copy Markdown

Summary

  • update site-adapter examples from match to the implemented matches property
  • align getActiveAdapter() snippets with the production call to a.matches(url)
  • keep the English, Chinese, and French adapter guides consistent

Why

The current implementation calls a.matches(url). Copying the documented match examples creates an adapter that never activates.

Testing

  • git diff --check
  • verified the four updated guides contain no stale match: (url) or a.match(url) examples
  • npm test: 1352 passed, 2 unrelated existing failures (CHANGELOG.md version lags package.json; promotion recommendation locale expectation)

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

@16Miku is attempting to deploy a commit to the esokullu's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant