File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 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 = {
2222export const TELEMETRY_DISABLED = isTruthy ( process . env . NEXT_PUBLIC_CLERK_TELEMETRY_DISABLED ) ;
2323export const TELEMETRY_DEBUG = isTruthy ( process . env . NEXT_PUBLIC_CLERK_TELEMETRY_DEBUG ) ;
2424
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 11import { isDevelopmentEnvironment } from '@clerk/shared/utils' ;
22
3- import { ENABLE_KEYLESS } from '../server/constants' ;
3+ import { KEYLESS_DISABLED } from '../server/constants' ;
44import { isNextWithUnstableServerActions } from './sdk-versions' ;
55
66const canUseKeyless =
77 ! isNextWithUnstableServerActions &&
88 // Next.js will inline the value of 'development' or 'production' on the client bundle, so this is client-safe.
99 isDevelopmentEnvironment ( ) &&
10- ENABLE_KEYLESS ;
10+ ! KEYLESS_DISABLED ;
1111
1212export { canUseKeyless } ;
You can’t perform that action at this time.
0 commit comments