(repoRoot: string)
| 434 | ): Map<string, string> { |
| 435 | const slugs = new Map<string, string>(); |
| 436 | for (const id of new Set(configurationIds)) { |
| 437 | try { |
| 438 | const response = vercelApi( |
| 439 | context, |
| 440 | `/v1/integrations/configuration/${encodeURIComponent(id)}`, |
| 441 | 'Read an integration configuration' |
| 442 | ); |
| 443 | slugs.set(id, stringValue(response, 'slug') ?? id); |
| 444 | } catch (error) { |
| 445 | if (!(error instanceof VercelApiError && error.code === 'not_found')) throw error; |
| 446 | slugs.set(id, id); |
| 447 | } |
| 448 | } |
| 449 | return slugs; |
| 450 | } |
| 451 | |
| 452 | export function customEnvironmentId(context: VercelContext, slug: string): string | undefined { |
| 453 | const response = vercelApi( |
no test coverage detected