Skip to content

Commit ce49854

Browse files
committed
docs(deploy): document live-error recovery paths and add changeset
1 parent 0200995 commit ce49854

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"clerk": minor
3+
---
4+
5+
Surface Clerk API error codes and metadata as structured fields on `PlapiError` / `BapiError` / `FapiError`, and use them to add two recovery paths in `clerk deploy`: resume from server state when a production instance already exists, and present a friendly upgrade hint when the development instance uses features the current subscription plan doesn't allow.

packages/cli-core/src/commands/deploy/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,12 @@ When the user chooses the guided walkthrough, these values are derived from thei
176176
| ----------------------------- | --------------------------------------------- |
177177
| Authorized JavaScript origins | `https://{domain}`, `https://www.{domain}` |
178178
| Authorized redirect URI | `https://accounts.{domain}/v1/oauth_callback` |
179+
180+
### Recovery paths
181+
182+
- **`production_instance_exists`** (HTTP 400) on production-instance creation —
183+
the wizard refetches the application, persists the existing instance ID, and
184+
jumps into the reconcile flow as if local state had been intact.
185+
- **`unsupported_subscription_plan_features`** (HTTP 402) on cloning validation —
186+
the wizard rethrows a `CliError` listing the unsupported features and pointing
187+
at `https://clerk.com/docs/billing/plans`.

0 commit comments

Comments
 (0)