Skip to content

Commit c2c4759

Browse files
toddaheathclaude
andcommitted
Add 30-second request timeout to API client
Prevents requests from hanging indefinitely when the server is unreachable or slow to respond. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d54cb7a commit c2c4759

File tree

1 file changed

+1
-0
lines changed
  • src/shed-builder-ui/src/services

1 file changed

+1
-0
lines changed

src/shed-builder-ui/src/services/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const API_BASE = import.meta.env.VITE_API_BASE_URL ?? '/api/v1';
1515

1616
const client = axios.create({
1717
baseURL: API_BASE,
18+
timeout: 30000,
1819
});
1920

2021
const TOKEN_STORAGE = 'shed-builder-token';

0 commit comments

Comments
 (0)