Skip to content

Commit

Permalink
Fix:Manage Firefox and Safari Network error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Jan 16, 2023
1 parent d45d0f9 commit ff84b49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next/src/shared/lib/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,11 @@ function fetchNextData({
if (!unstable_skipClientCache) {
delete inflightCache[cacheKey]
}
if (err.message === 'Failed to fetch') {
if (
err.message === 'Failed to fetch' ||
err.message === 'NetworkError when attempting to fetch resource.' ||
err.message === 'Load failed'
) {
markAssetError(err)
}
throw err
Expand Down

0 comments on commit ff84b49

Please sign in to comment.