Skip to content

Commit

Permalink
Improve failed to fetch RSC error (#56517)
Browse files Browse the repository at this point in the history
Ensures the specific URL that failed is highlighted in this error. Useful for debugging when the fetch fails.
  • Loading branch information
timneutkens authored Oct 6, 2023
1 parent 5aca71c commit 61122eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export async function fetchServerResponse(
return [flightData, canonicalUrl]
} catch (err) {
console.error(
'Failed to fetch RSC payload. Falling back to browser navigation.',
`Failed to fetch RSC payload for ${url}. Falling back to browser navigation.`,
err
)
// If fetch fails handle it like a mpa navigation
Expand Down

0 comments on commit 61122eb

Please sign in to comment.