We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da33e10 commit f177fcaCopy full SHA for f177fca
middleware.js
@@ -1,6 +1,6 @@
1
import { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server";
2
3
-const isProtectedRoute = createRouteMatcher(["", "/forum(.*)"]);
+const isProtectedRoute = createRouteMatcher(["/dashboard(.*)", "/forum(.*)"]);
4
// /dashboard(.*)
5
6
export default clerkMiddleware(async (auth, req) => {
0 commit comments