Josip
Josip
TTCTheo's Typesafe Cult
Created by BootesVoid on 9/11/2023 in #questions
Clerk middleware public routes
Any idea how to let tRPC handle route protection without Clerk middleware? As soon as middleware is removed, hitting tRPC routes errors out: tRPC failed on <no-path>: You need to use "authMiddleware" (or the deprecated "withClerkMiddleware") in your Next.js middleware file. You also need to make sure that your middleware matcher is configured correctly and matches this route or page.
16 replies