()
| 100 | } |
| 101 | |
| 102 | async function hasExistingEnvironment(): Promise<boolean> { |
| 103 | try { |
| 104 | const envs = await fetchEnvironments() |
| 105 | return envs.length > 0 |
| 106 | } catch { |
| 107 | return false |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Best-effort default environment creation. Mirrors the web onboarding's |
no test coverage detected