mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
11 lines
293 B
TypeScript
11 lines
293 B
TypeScript
// @ts-expect-error -- missing types
|
|
import createFetchRetry from '@vercel/fetch-retry';
|
|
|
|
export const defaultRequestInit: RequestInit = {
|
|
headers: {
|
|
'User-Agent': 'curl/8.1.2 (https://github.com/SukkaW/Surge)'
|
|
}
|
|
}
|
|
|
|
export const fetchWithRetry: typeof fetch = createFetchRetry(fetch);
|