Skip to content

Commit d16df7d

Browse files
committed
fix(nextjs): separate infrastructure failure note from checklist in auth error message
1 parent 4730b3a commit d16df7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/nextjs/src/server/errors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export const authAuthHeaderMissing = (helperName = 'auth', prefixSteps?: string[
2727
- ${prefixSteps ? [...prefixSteps, ''].join('\n- ') : ' '}clerkMiddleware() is used in your Next.js ${fileReference} file.
2828
- Your ${fileReference} matcher is configured to match this route or page.
2929
- If you are using the src directory, make sure the ${fileReference} file is inside of it.
30-
- If your ${fileReference} file and matcher are configured correctly, this error can also occur if the ${fileReference} failed to run on this request (e.g. due to an edge runtime error or platform outage).
30+
31+
If you verified your configuration and are still seeing this error, there may be a runtime issue or a problem communicating with Clerk.
3132
3233
For more details, see https://clerk.com/err/auth-middleware
3334
`;

0 commit comments

Comments
 (0)