10 lines
212 B
TypeScript
10 lines
212 B
TypeScript
|
import { authMiddleware } from "@clerk/nextjs";
|
||
|
|
||
|
export default authMiddleware({
|
||
|
publicRoutes: ["/", "/api/(.*)"],
|
||
|
});
|
||
|
|
||
|
export const config = {
|
||
|
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
|
||
|
};
|