Where should I place middleware? (following T3 app tutorial video)
I was placing middleware inside 'src' folder (like what Theor mentioned) but it kept routing me to a unknown url instead of localhost:3000..
So instead I placed the middleware in the root folder (as it's mentioned in the Clerk docs: https://clerk.com/docs/nextjs/trpc#configure-middleware) and it appears to be working fine since I can see the purple background. Not sure whether this is correct tho..
So instead I placed the middleware in the root folder (as it's mentioned in the Clerk docs: https://clerk.com/docs/nextjs/trpc#configure-middleware) and it appears to be working fine since I can see the purple background. Not sure whether this is correct tho..
Learn how to integrate Clerk into your Next.js with TRPC
