We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4591e88 commit 8b468ceCopy full SHA for 8b468ce
1 file changed
middleware.ts
@@ -17,8 +17,8 @@ export default clerkMiddleware(async (auth, request) => {
17
18
export const config = {
19
matcher: [
20
- // Skip Next.js internals and static files
21
- "/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)",
+ // Skip Next.js internals, static files, and webhook routes (body must not be consumed before the handler)
+ "/((?!_next|github/|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)",
22
// Always run for API routes
23
"/(api|trpc)(.*)",
24
],
0 commit comments