File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/nextjs ' : minor
3
+ ---
4
+
5
+ Enable Keyless by default. To disable keyless use ` NEXT_PUBLIC_CLERK_KEYLESS_DISABLED=1 ` .
Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ export const SDK_METADATA = {
22
22
export const TELEMETRY_DISABLED = isTruthy ( process . env . NEXT_PUBLIC_CLERK_TELEMETRY_DISABLED ) ;
23
23
export const TELEMETRY_DEBUG = isTruthy ( process . env . NEXT_PUBLIC_CLERK_TELEMETRY_DEBUG ) ;
24
24
25
- export const ENABLE_KEYLESS = isTruthy ( process . env . NEXT_PUBLIC_CLERK_ENABLE_KEYLESS ) ;
25
+ export const KEYLESS_DISABLED = isTruthy ( process . env . NEXT_PUBLIC_CLERK_KEYLESS_DISABLED ) || false ;
Original file line number Diff line number Diff line change 1
1
import { isDevelopmentEnvironment } from '@clerk/shared/utils' ;
2
2
3
- import { ENABLE_KEYLESS } from '../server/constants' ;
3
+ import { KEYLESS_DISABLED } from '../server/constants' ;
4
4
import { isNextWithUnstableServerActions } from './sdk-versions' ;
5
5
6
6
const canUseKeyless =
7
7
! isNextWithUnstableServerActions &&
8
8
// Next.js will inline the value of 'development' or 'production' on the client bundle, so this is client-safe.
9
9
isDevelopmentEnvironment ( ) &&
10
- ENABLE_KEYLESS ;
10
+ ! KEYLESS_DISABLED ;
11
11
12
12
export { canUseKeyless } ;
You can’t perform that action at this time.
0 commit comments