fix: Revert axios timeout to 10 seconds

Nothing should take longer than 10 seconds to respond. If it does, it's a server/query optimization issue, not a timeout issue.
This commit is contained in:
Muhammad Ibrahim
2025-10-28 15:35:29 +00:00
parent 4b6f19c28e
commit 68f10c6c43

View File

@@ -5,7 +5,7 @@ const API_BASE_URL = import.meta.env.VITE_API_URL || "/api/v1";
// Create axios instance with default config
const api = axios.create({
baseURL: API_BASE_URL,
timeout: 30000, // Increased from 10000ms to 30000ms (30 seconds) to handle larger operations
timeout: 10000, // 10 seconds
headers: {
"Content-Type": "application/json",
},