mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-24 03:16:40 +00:00
Increase getDocument timeout to 20s to prevent failing while the API is normalizing documents (#264)
This commit is contained in:
@@ -559,6 +559,12 @@ export const getDocument = cache(
|
||||
);
|
||||
return cacheResponse(response, immutableCacheTtl_7days);
|
||||
},
|
||||
{
|
||||
// Temporarily allow for a longer timeout than the default 10s
|
||||
// because GitBook's API currently re-normalizes all documents
|
||||
// and it can take more than 10s...
|
||||
timeout: 20 * 1000,
|
||||
},
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user