Unverified Commit 61122ebc authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Improve failed to fetch RSC error (#56517)

Ensures the specific URL that failed is highlighted in this error. Useful for debugging when the fetch fails.
parent 5aca71cf
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment