burakorkmez / whatsapp-clone

WhatsApp but AI Powered
https://youtu.be/sQ1zvdS8eU8
MIT License
123 stars 45 forks source link

authentication issue #6

Open ivaibhavraheja opened 3 months ago

ivaibhavraheja commented 3 months ago

the clerk middleware code is not working. I have written the updated middleware code even that is also not working

deepthiiii4 commented 4 weeks 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