chatbot-template/middleware.ts
2023-06-16 17:06:23 +04:00

10 lines
229 B
TypeScript

import { authMiddleware } from '@clerk/nextjs'
// @see https://clerk.dev
export default authMiddleware({
publicRoutes: ['/share/:id']
})
export const config = {
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)']
}