fix: Add timeout to agents API fetch to prevent hanging

This commit is contained in:
Apple
2025-12-05 03:25:30 -08:00
parent 33fcb04f65
commit 254267afa3

View File

@@ -21,6 +21,8 @@ export async function GET(req: NextRequest) {
'Content-Type': 'application/json',
},
cache: 'no-store',
// Add timeout to prevent hanging
signal: AbortSignal.timeout(10000), // 10 seconds
});
if (!response.ok) {