mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #803] [MERGED] Update @clerk/nextjs compatibility: unsupported → partial #857
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#857
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?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/803
Author: @Shorebirdmgmt
Created: 4/9/2026
Status: ✅ Merged
Merged: 4/9/2026
Merged by: @james-elicx
Base:
main← Head:clerk-compatibility📝 Commits (1)
bee8fadUpdate @clerk/nextjs compatibility from unsupported to partial📊 Changes
2 files changed (+18 additions, -3 deletions)
View changed files
📝
packages/vinext/src/check.ts(+3 -2)📝
tests/check.test.ts(+15 -1)📄 Description
Summary
@clerk/nextjsstatus inLIBRARY_SUPPORTfromunsupportedtopartial@auth/nextjsfor the unsupported-libraries assertionContext
Closes #800.
@clerk/nextjswas marked as unsupported with "deep Next.js middleware integration not compatible," but runtime testing shows this is overly conservative — Clerk's middleware works through vinext's existing shims.What was tested
Built and ran a Next.js 16 App Router app with
@clerk/nextjsv7.0.12 on vinext 0.0.40. Verified against Clerk's live API:Why it works
Clerk's `clerkMiddleware()` uses standard Next.js middleware patterns that vinext already shims:
What's still WIP (why "partial" not "supported")
`auth()` in Server Components and Route Handlers uses `next/headers`'s `headers()` and `cookies()` functions to read the auth state that middleware injected. This path hasn't been verified — it depends on vinext's `next/headers` shim correctly exposing the middleware-decorated request headers.
Test plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.