Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 2f7b56a

Browse files
authored
Merge pull request #1 from perkinsjr/middleware-updates
Chore: updating Middleware to be more specific
2 parents b5c1f9d + b6d5513 commit 2f7b56a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/nextjs/src/middleware.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ export default withClerkMiddleware((_req: NextRequest) => {
1010
export const config = {
1111
matcher: [
1212
/*
13-
* Match all request paths except for the ones starting with:
13+
* Match request paths except for the ones starting with:
1414
* - _next
1515
* - static (static files)
1616
* - favicon.ico (favicon file)
17+
*
18+
* This includes images, and requests from TRPC.
1719
*/
18-
"/((?!_next|static|favicon.ico).*)",
20+
"/(.*?trpc.*?|(?!static|.*\\..*|_next|favicon.ico).*)",
1921
],
2022
};

0 commit comments

Comments
 (0)