mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 00:09:23 +02:00
[GH-ISSUE #800] Feature request: @clerk/nextjs compatibility #177
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Shorebirdmgmt on GitHub (Apr 9, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/800
Description
vinext checkflags@clerk/nextjs(v7.0.12) as incompatible:Clerk is one of the most widely used auth providers for Next.js, especially in B2B SaaS. Supporting
@clerk/nextjswould significantly expand vinext's adoption.What Clerk uses
clerkMiddleware()— wraps Next.js middleware with auth checks, route protection, and org resolutionfrontendApiProxy— proxies Clerk's Frontend API through the app's domain (for custom domain auth)auth()— server-side helper in Server Components, Route Handlers, and Server Actions<ClerkProvider>— React context provideruseAuth(),useUser(),useOrganization()— client hooks<Show>,<SignIn>,<UserButton>— prebuilt UI componentsWhat likely breaks
The middleware integration is the main issue.
clerkMiddleware()from@clerk/nextjs/serverhooks into Next.js middleware internals that vinext may not replicate. The client-side components and hooks likely work fine since they're standard React.Impact
Without Clerk support, B2B SaaS apps using Clerk for auth, organizations, RBAC, and billing can't migrate to vinext. This is a large segment of the Next.js ecosystem.
Environment