import { authMiddleware } from '@clerk/nextjs';
// This example protects all routes including api/trpc routes
// Please edit this to allow other routes to be public as needed.
// See <https://clerk.com/docs/references/nextjs/auth-middleware> for more information about configuring your middleware
export default authMiddleware({
// api-routes의 auth를 해제 해주는 듯... 로컬환경에서만
publicRoutes: ['/api/:path*'],
});
export const config = {
matcher: ['/((?!.+\\\\.[\\\\w]+$|_next).*)', '/', '/(api|trpc)(.*)'],
};