sandbox-web-ide/middleware.ts
2024-04-09 01:20:15 -04:00

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)(.*)"],
}