Improvement4.29.3
Improve missing and invalid key error messages
Updated error messages for missing and invalid Clerk keys to recommend using the Clerk CLI for key management, including init, env pull, and deploy commands. This improves the user experience when keys are misconfigured or unavailable.
Patch Changes
- Update missing and invalid key error messages to recommend the Clerk CLI:
npx clerk@latest init(non-interactive, no Clerk account required) to create an application,npx clerk@latest env pullto fetch the keys of an existing one, andnpx clerk@latest deploy/npx clerk@latest env pull --instance prodfor production. This covers both theerrorThrowermessages and the errors thrown byparsePublishableKey(key, { fatal: true }), which previously surfaced server-side as a barePublishable key not valid.The Dashboard link is kept for manual key copying. (#9491) by @djgould
error-handlingclikeysdeveloper-experience
Source: original entry ↗