From 4e58f20ba3c104b80c66f3b76741551ea8a1b356 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Mon, 4 May 2026 14:15:57 +0700 Subject: [PATCH] fix: set timeout to 1 minute --- src/services/http/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/http/client.ts b/src/services/http/client.ts index c9fbfe2c..64bf9680 100644 --- a/src/services/http/client.ts +++ b/src/services/http/client.ts @@ -5,7 +5,7 @@ import { RequestOptions } from '@/services/http/base'; import { redirectToSSO } from '@/lib/auth-helper'; const BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL ?? ''; -const axiosClient = axios.create({ baseURL: BASE_URL, timeout: 30_000 }); +const axiosClient = axios.create({ baseURL: BASE_URL, timeout: 60_000 }); axiosClient.interceptors.response.use( (response) => response, @@ -38,7 +38,7 @@ export async function httpClient( method: opts.method ?? 'GET', params: opts.query, data: opts.body, - timeout: opts.timeoutMs ?? 30_000, + timeout: opts.timeoutMs ?? 60_000, withCredentials: isCookieAuth && !isBearerAuth, responseType: opts.responseType, headers: {