Open ivaibhavraheja opened 3 months ago
import { clerkMiddleware } from '@clerk/nextjs/server';
export default clerkMiddleware({ // Optionally, you can include a list of public routes // publicRoutes: ['/sign-in', '/public-page'], });
export const config = { matcher: [ '/((?!.\..|_next).)', // Exclude static files and Next.js internal paths '/', // Include the homepage '/(api|trpc)(.)' // Include API routes ], }; use this instead
the clerk middleware code is not working. I have written the updated middleware code even that is also not working