diff --git a/.changeset/brown-melons-listen.md b/.changeset/brown-melons-listen.md new file mode 100644 index 00000000000..40a9c765b0d --- /dev/null +++ b/.changeset/brown-melons-listen.md @@ -0,0 +1,5 @@ +--- +'@clerk/nextjs': patch +--- + +Updated URL for 'auth() was called but Clerk can't detect usage of clerkMiddleware()' diff --git a/packages/nextjs/src/server/errors.ts b/packages/nextjs/src/server/errors.ts index 24235da292b..93cb5562728 100644 --- a/packages/nextjs/src/server/errors.ts +++ b/packages/nextjs/src/server/errors.ts @@ -26,7 +26,7 @@ export const authAuthHeaderMissing = (helperName = 'auth', prefixSteps?: string[ - 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. -For more details, see https://clerk.com/docs/quickstarts/nextjs +For more details, see https://clerk.com/err/auth-middleware `; export const authSignatureInvalid = `Clerk: Unable to verify request, this usually means the Clerk middleware did not run. Ensure Clerk's middleware is properly integrated and matches the current route. For more information, see: https://clerk.com/docs/references/nextjs/clerk-middleware. (code=auth_signature_invalid)`;