next.js/examples/with-clerk/middleware.ts
middleware.ts10 lines211 B
import { authMiddleware } from "@clerk/nextjs";

export default authMiddleware({
  publicRoutes: ["/", "/api/getAuthenticatedUserId"],
});

export const config = {
  matcher: ["/((?!.*\\..*|_next).*)", "/"],
};
Quest for Codev2.0.0
/
SIGN IN