Skip to content

Commit

Permalink
Merge pull request #10 from Lostovayne/auth
Browse files Browse the repository at this point in the history
fix: element router
  • Loading branch information
Lostovayne authored Dec 21, 2024
2 parents df3d188 + 8871ebd commit a588348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server";

const isPublicRoute = createRouteMatcher(["/", "/preview/[documentId]"]);
const isPublicRoute = createRouteMatcher(["/", "/preview/(.*)"]);

export default clerkMiddleware(async (auth, request) => {
if (!isPublicRoute(request)) {
Expand Down

0 comments on commit a588348

Please sign in to comment.