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