sanity studio not opening after clerk authentication - Stack Overflow

admin2025-04-16  5

Error: Clerk: auth() was called but Clerk can't detect usage of clerkMiddleware(). Please ensure the following:

  • Your Middleware exists at ./src/middleware.(ts|js)
  • clerkMiddleware() is used in your Next.js Middleware.
  • Your Middleware matcher is configured to match this route or page.
  • If you are using the src directory, make sure the Middleware file is inside of it.

please resolve it to open sanity studio

转载请注明原文地址:http://anycun.com/QandA/1744779691a87516.html