We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbea181 commit fc34af4Copy full SHA for fc34af4
packages/nextjs/src/utils/feature-flags.ts
@@ -1,8 +1,7 @@
1
-import { canUseKeyless as sharedCanUseKeyless } from '@clerk/shared/keyless';
+import { isDevelopmentEnvironment } from '@clerk/shared/utils';
2
3
import { KEYLESS_DISABLED } from '../server/constants';
4
-
5
// 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 });
+const canUseKeyless = isDevelopmentEnvironment() && !KEYLESS_DISABLED;
7
8
export { canUseKeyless };
0 commit comments