Skip to content

Commit

Permalink
🔒 chore(middleware.ts): update publicRoutes array to include "/api/we…
Browse files Browse the repository at this point in the history
…bhook" route for authentication middleware
  • Loading branch information
Zaid-maker committed Aug 13, 2023
1 parent 983e7e9 commit 86a3c94
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions middleware.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { authMiddleware } from "@clerk/nextjs";

// This example protects all routes including api/trpc routes
// Please edit this to allow other routes to be public as needed.
// See https://clerk.com/docs/nextjs/middleware for more information about configuring your middleware
export default authMiddleware({
publicRoutes: ['/']
publicRoutes: ["/", "/api/webhook"],
});

export const config = {
Expand Down

0 comments on commit 86a3c94

Please sign in to comment.