Skip to content

Commit 7220975

Browse files
manovotnyclaude
andauthored
fix(nextjs): remove stray double space in clerkMiddleware detection error (#9408)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 45514ca commit 7220975

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/tidy-cameras-jump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/nextjs': patch
3+
---
4+
5+
Fix a stray double space in the `getAuth()` "Clerk can't detect usage of clerkMiddleware()" error, so the first bullet renders as `- clerkMiddleware() is used in your Next.js middleware or proxy file.`

packages/nextjs/src/server/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const getAuthAuthHeaderMissing = () => authAuthHeaderMissing('getAuth', u
2424

2525
export const authAuthHeaderMissing = (helperName = 'auth', prefixSteps?: string[], fileReference = 'middleware') => {
2626
return `Clerk: ${helperName}() was called but Clerk can't detect usage of clerkMiddleware(). Please ensure the following:
27-
- ${prefixSteps ? [...prefixSteps, ''].join('\n- ') : ' '}clerkMiddleware() is used in your Next.js ${fileReference} file.
27+
- ${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.
3030

0 commit comments

Comments
 (0)