We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2b8a4 commit ff186b6Copy full SHA for ff186b6
src/utils/documents.server.ts
@@ -414,12 +414,15 @@ export async function fetchRepoFile(
414
ttl: DOC_FILE_CACHE_TTL_MS,
415
shouldFallbackToStale: isRecoverableGitHubContentError,
416
onStaleFallback: (error) => {
417
- console.warn('[fetchRepoFile] Serving stale cached file after GitHub fetch failure:', {
418
- repoPair,
419
- ref,
420
- filepath,
421
- message: error instanceof Error ? error.message : String(error),
422
- })
+ console.warn(
+ '[fetchRepoFile] Serving stale cached file after GitHub fetch failure:',
+ {
+ repoPair,
+ ref,
+ filepath,
423
+ message: error instanceof Error ? error.message : String(error),
424
+ },
425
+ )
426
},
427
fn: async () => {
428
const maxDepth = 4
0 commit comments