{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "nextjs-middleware",
  "type": "registry:file",
  "title": "Clerk Next.js Middleware",
  "description": "The clerkMiddleware() helper integrates Clerk authentication into your Next.js application through Middleware. clerkMiddleware() is compatible with both the App and Pages routers.",
  "dependencies": [
    "@clerk/nextjs"
  ],
  "files": [
    {
      "path": "nextjs/common/middleware/middleware.ts",
      "content": "import { clerkMiddleware } from '@clerk/nextjs/server';\n\nexport default clerkMiddleware();\n\nexport const config = {\n  matcher: [\n    // Skip Next.js internals and all static files, unless found in search params\n    '/((?!_next|[^?]*\\\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)',\n    // Always run for API routes\n    '/(api|trpc)(.*)',\n  ],\n};\n",
      "type": "registry:file",
      "target": "src/middleware.ts"
    }
  ],
  "docs": "https://clerk.com/docs/references/nextjs/clerk-middleware"
}