Skip to content

Commit

Permalink
feat: ✨ add clerk middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
neopromic committed Nov 6, 2024
1 parent 5aab3af commit c095423
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions middleware.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { clerkMiddleware } from "@clerk/nextjs/server";

export default clerkMiddleware();

export const config = {
matcher: [
// Skip Next.js internals and all static files, unless found in search params
"/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)",
// Always run for API routes
"/(api|trpc)(.*)",
],
};

0 comments on commit c095423

Please sign in to comment.