You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5b8a90c
Browse filesBrowse the repository at this point in the historyBrowse files
Make error-decoder build resilient to error-codes fetch failures
The /errors/[errorCode] page fetches React's error codes from GitHub raw
at build time. When that endpoint returns a non-JSON body (e.g.
'404: Not Found' or a rate-limit message), calling .json() throws and
fails the whole build during page-data collection.
Validate the response and retry a few times, and fall back to a bundled
snapshot of codes.json if the fetch is still unusable, so a transient
GitHub hiccup no longer breaks the build.
0 commit comments