sandbox-web-ide/middleware.ts

10 lines
234 B
TypeScript
Raw Normal View History

2024-04-09 01:20:15 -04:00
import { authMiddleware } from "@clerk/nextjs"
export default authMiddleware({
// publicRoutes: (req) => !req.url.includes("/code"),
})
export const config = {
2024-04-11 03:34:58 -04:00
matcher: ["/((?!.+\\.[\\w]+$|_next).*)", "/", "/(api|trpc)(.*)"],
2024-04-09 01:20:15 -04:00
}