Improvement7.8.0
@clerk/nextjs: Missing Clerk keys now throw error instead of enabling keyless mode
Missing Clerk authentication keys (NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY) now throw an error directing developers to run npx clerk@latest init, instead of silently activating keyless mode. This improves development experience by making configuration requirements explicit. Existing apps with configured keys are unaffected.
Minor Changes
- In development, missing Clerk keys no longer activate keyless mode. When
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEYandCLERK_SECRET_KEYare not set, the SDK now throws an error directing you to runnpx clerk@latest init, which provisions a Clerk application and writes the keys to.env.local. Keyless credentials stored in the development keyless cookie are no longer read. Existing apps with configured or claimed keys are unaffected. (#9493) by @djgould
Patch Changes
nextjsautherror-handlingdeveloper-experience
Source: original entry ↗