xxxxxxxxxx
middleware.ts
1import { authMiddleware } from "@clerk/nextjs";
2
3// This example protects all routes including api/trpc routes
4// Please edit this to allow other routes to be public as needed.
5// See https://clerk.com/docs/nextjs/middleware for more information about configuring your middleware
6export default authMiddleware({});
7
8export const config = {
9 matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
10};
11