()
| 752 | } |
| 753 | |
| 754 | export function apiClientMissingError() { |
| 755 | const hasBaseUrl = !!apiClientManager.baseURL; |
| 756 | const hasAccessToken = !!apiClientManager.accessToken; |
| 757 | if (!hasBaseUrl && !hasAccessToken) { |
| 758 | return `You need to set the TRIGGER_API_URL and TRIGGER_SECRET_KEY environment variables.`; |
| 759 | } else if (!hasBaseUrl) { |
| 760 | return `You need to set the TRIGGER_API_URL environment variable.`; |
| 761 | } else if (!hasAccessToken) { |
| 762 | return `You need to set the TRIGGER_SECRET_KEY environment variable.`; |
| 763 | } |
| 764 | |
| 765 | return `Unknown error`; |
| 766 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…