import { BuildStorage } from 'axios-cache-interceptor' import { Stage } from '../../interfaces' /** * The options used to configure the API. */ export interface ApiConfig { /** * The URL of the api. */ baseUrl: string stage: Stage /** * Milliseconds before we timeout the request. */ timeout: number /** * Local storage config */ storage?: BuildStorage cacheTtl?: number headers?: Record httpsAgent?: unknown } /** * The default configuration for the app. */ export const DEFAULT_API_CONFIG: ApiConfig = { stage: 'production', baseUrl: 'https://edocu.eu', timeout: 30000, }