fix(api-client): increase default timeout 5s → 15s

Render Starter tier has occasional >5s latency on first authenticated
requests after DB idle period. 15s absorbs cold-path latency without
masking real failures.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hermann_Kitio 2026-04-25 01:47:26 +03:00
parent 4005673ae8
commit 944d2803a2

View file

@ -4,7 +4,7 @@ import { getAccessToken } from './auth-client'
import { logger } from './logger' import { logger } from './logger'
const API_VERSION = '1.0' const API_VERSION = '1.0'
const DEFAULT_TIMEOUT_MS = 5000 const DEFAULT_TIMEOUT_MS = 15000
const DEFAULT_RETRY = { max: 2, baseDelayMs: 250 } const DEFAULT_RETRY = { max: 2, baseDelayMs: 250 }
const IDEMPOTENT_METHODS = new Set(['GET', 'HEAD', 'PUT', 'DELETE']) const IDEMPOTENT_METHODS = new Set(['GET', 'HEAD', 'PUT', 'DELETE'])