Skip to content

Commit fc34af4

Browse files
committed
fix next util
1 parent fbea181 commit fc34af4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { canUseKeyless as sharedCanUseKeyless } from '@clerk/shared/keyless';
1+
import { isDevelopmentEnvironment } from '@clerk/shared/utils';
22

33
import { KEYLESS_DISABLED } from '../server/constants';
4-
54
// Next.js will inline the value of 'development' or 'production' on the client bundle, so this is client-safe.
6-
const canUseKeyless = sharedCanUseKeyless({ disabled: KEYLESS_DISABLED });
5+
const canUseKeyless = isDevelopmentEnvironment() && !KEYLESS_DISABLED;
76

87
export { canUseKeyless };

0 commit comments

Comments
 (0)