1 2 3 4 5 6 7 8 9 10import { authMiddleware } from "@clerk/nextjs"; export default authMiddleware({ publicRoutes: ["/", "/api/getAuthenticatedUserId"], }); export const config = { matcher: ["/((?!.*\\..*|_next).*)", "/"], };
1 2 3 4 5 6 7 8 9 10
import { authMiddleware } from "@clerk/nextjs"; export default authMiddleware({ publicRoutes: ["/", "/api/getAuthenticatedUserId"], }); export const config = { matcher: ["/((?!.*\\..*|_next).*)", "/"], };