@rebasepro/cli 0.21.1 → 0.21.2-canary.g1ea48be

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -12522,7 +12522,7 @@ function bootFailed(logs) {
12522
12522
  return typeof logs === "string" && /did not become ready within/i.test(logs);
12523
12523
  }
12524
12524
  function resolveBlockedState(input) {
12525
- if (!input.database) return {
12525
+ if (!input.database && input.lastDeploy?.status !== "success") return {
12526
12526
  blockedOn: "no_database",
12527
12527
  nextAction: "rebase cloud db create --type managed"
12528
12528
  };
@@ -12538,7 +12538,7 @@ function resolveBlockedState(input) {
12538
12538
  blockedOn: "last_deploy_failed",
12539
12539
  nextAction: bootFailed(input.lastDeploy.logs) ? "rebase cloud logs --runtime" : "rebase cloud logs"
12540
12540
  };
12541
- if (input.database.connectionStatus === "failed") return {
12541
+ if (input.database?.connectionStatus === "failed") return {
12542
12542
  blockedOn: "database_unreachable",
12543
12543
  nextAction: "rebase cloud db test"
12544
12544
  };