Skip to content

Commit 9789e6c

Browse files
committed
middleware updated
1 parent 42b2085 commit 9789e6c

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

middleware.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server";
22

33
const isPublicRoute = createRouteMatcher([
4-
'/',
5-
'/templates(.*)',
6-
'/terms(.*)',
7-
'/privacy(.*)',
8-
'/builder/template-(.*)',
9-
'/api/copilot(.*)',
10-
'/api/webhooks/clerk(.*)',
4+
"/",
5+
"/templates(.*)",
6+
"/terms(.*)",
7+
"/privacy(.*)",
8+
"/builder/template-(.*)",
9+
"/builder/demo(.*)",
10+
"/builder/mock-(.*)",
11+
"/api/copilot(.*)",
12+
"/api/webhooks/clerk(.*)",
1113
]);
1214

1315
export default clerkMiddleware(async (auth, request) => {

0 commit comments

Comments
 (0)