mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
/ route for force graph, /links for links
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server"
|
||||
|
||||
const isPublicRoute = createRouteMatcher(["/sign-in(.*)", "/sign-up(.*)", "/"])
|
||||
const publicRoutes = ["/", "/sign-in(.*)", "/sign-up(.*)"]
|
||||
const isPublicRoute = createRouteMatcher(publicRoutes)
|
||||
|
||||
export default clerkMiddleware((auth, request) => {
|
||||
if (!isPublicRoute(request)) {
|
||||
|
||||
Reference in New Issue
Block a user