The clerkMiddleware() helper integrates Clerk authentication into your Next.js application through Proxy. clerkMiddleware() is compatible with both the App and Pages routers.
pnpm dlx shadcn@latest add "https://clerk.com/r/nextjs-middleware.json"