sandbox-web-ide/middleware.ts
2024-04-11 03:34:58 -04:00

10 lines
234 B
TypeScript

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