diff --git a/src/lib/api.ts b/src/lib/api.ts index 8d8938da1..b2b7f046c 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -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, + }, ); /**