10 lines
230 B
TypeScript
10 lines
230 B
TypeScript
import { authMiddleware } from "@clerk/nextjs"
|
|
|
|
export default authMiddleware({
|
|
// publicRoutes: (req) => !req.url.includes("/code"),
|
|
})
|
|
|
|
export const config = {
|
|
matcher: ["/((?!.+.[w]+$|_next).*)", "/", "/(api|trpc)(.*)"],
|
|
}
|