UNPKG

@afriex/core

Version:

HTTP client, configuration and typed errors for the Afriex Business API SDK

23 lines • 643 B
export const Environment = { STAGING: "staging", PRODUCTION: "production", }; export const BASE_URLS = { [Environment.STAGING]: "https://sandbox.api.afriex.com/api/v1", [Environment.PRODUCTION]: "https://api.afriex.com/api/v1", }; export const DEFAULT_CONFIG = { [Environment.STAGING]: { baseUrl: BASE_URLS[Environment.STAGING], timeout: 30000, maxRetries: 0, retryDelay: 1000, }, [Environment.PRODUCTION]: { baseUrl: BASE_URLS[Environment.PRODUCTION], timeout: 30000, maxRetries: 0, retryDelay: 1000, }, }; //# sourceMappingURL=Environment.js.map