Skip to content

Deprecate middleware auth gating in Astro docs#3407

Open
jacekradko wants to merge 1 commit into
jacek/deprecate-createroutematcher-nuxtfrom
jacek/deprecate-createroutematcher-astro
Open

Deprecate middleware auth gating in Astro docs#3407
jacekradko wants to merge 1 commit into
jacek/deprecate-createroutematcher-nuxtfrom
jacek/deprecate-createroutematcher-astro

Conversation

@jacekradko
Copy link
Copy Markdown
Member

@jacekradko jacekradko commented May 29, 2026

Stacked on #3406. Wraps the Astro middleware reference's createRouteMatcher and protect-all sections with the deprecation notice and switches the examples to :path*.

Adds an Astro variant of protect-pages showing per-page Astro.locals.auth() guards. Astro has no batch route-protection mechanism, so the guide is upfront that guarding each page individually is the trade-off rather than pretending there's a one-liner.

Wraps the createRouteMatcher and protect-all sections of the Astro clerkMiddleware reference with the deprecation notice and switches examples to the newline-safe :path* form. Adds an Astro variant of the protect-pages guide showing per-page guards via Astro.locals.auth(), and is candid that Astro has no batch route-protection mechanism.
@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