chatbot-template/middleware.ts

11 lines
229 B
TypeScript
Raw Normal View History

2023-06-13 17:31:15 -04:00
import { authMiddleware } from '@clerk/nextjs'
2023-06-15 08:37:23 -04:00
// @see https://clerk.dev
2023-06-16 17:06:23 +04:00
export default authMiddleware({
publicRoutes: ['/share/:id']
})
2023-06-13 17:31:15 -04:00
export const config = {
matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)']
}