Skip to content

Deprecate createRouteMatcher in Nuxt docs in favor of built-in route protection#3406

Open
jacekradko wants to merge 1 commit into
jacek/deprecate-createroutematcher-nextjsfrom
jacek/deprecate-createroutematcher-nuxt
Open

Deprecate createRouteMatcher in Nuxt docs in favor of built-in route protection#3406
jacekradko wants to merge 1 commit into
jacek/deprecate-createroutematcher-nextjsfrom
jacek/deprecate-createroutematcher-nuxt

Conversation

@jacekradko
Copy link
Copy Markdown
Member

Stacked on #3405. Moves the Nuxt docs off createRouteMatcher to Nuxt's built-in route protection.

protect-pages.nuxt now uses named route middleware (definePageMeta with file-system inheritance) and route groups (route.meta.groups, Nuxt 4.3+) instead of matching paths by hand, and the API-route examples in the middleware reference use event.path prefix checks. While rewriting the authorization example I also destructured has() from event.context.auth(), which was previously referenced but never defined.

…protection

Rewrites the Nuxt protect-pages guide to use Nuxt's named route middleware (definePageMeta inheritance) and route groups (route.meta.groups, Nuxt 4.3+) instead of createRouteMatcher, updates the overview accordingly, and switches the clerkMiddleware API-route examples to event.path prefix checks (also destructuring has() correctly).
@jacekradko jacekradko requested a review from a team as a code owner May 29, 2026 21:26
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-docs Ready Ready Preview May 29, 2026 9:27pm

Request Review

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