The clerkMiddleware() helper integrates Clerk authentication into your Next.js application through Proxy. clerkMiddleware() is compatible with both the App and Pages routers.
npx shadcn@latest add @clerk/nextjs-middleware
Loading the source for nextjs-middleware…
Registry Items
nextjs-middleware
Configuration
Name
nextjs-middleware
Type
File
Description
The clerkMiddleware() helper integrates Clerk authentication into your Next.js application through Proxy. clerkMiddleware() is compatible with both the App and Pages routers.
Files · 1
Dependencies
npm packages
@clerk/nextjs
Registry Items
nextjs-middleware
Configuration
Name
nextjs-middleware
Type
File
Description
The clerkMiddleware() helper integrates Clerk authentication into your Next.js application through Proxy. clerkMiddleware() is compatible with both the App and Pages routers.