Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/astro/src/assets/utils/redirectValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function fetchWithRedirects(options: FetchRedirectOptions): Promise

const urlString = typeof url === 'string' ? url : url.toString();
const req = new Request(url, { headers });
const res = await fetchFn(req, { redirect: 'manual' });
const res = await fetchFn(req, { redirect: 'manual', signal: AbortSignal.timeout(10_000) });

// Handle redirects (301, 302, 303, 307, 308 are actual redirects, not 304 Not Modified)
if ([301, 302, 303, 307, 308].includes(res.status)) {
Expand Down
Loading