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
When prerendering a large number of routes, it would be very beneficial to be able to automatically retry failed routes. Routes may fail spuriously due to a myriad of reasons, especially temporary 5XX errors from APIs. If a single page out of a few thousand has this problem, everything needs to be prerendered from scratch again.
Describe the feature
When prerendering a large number of routes, it would be very beneficial to be able to automatically retry failed routes. Routes may fail spuriously due to a myriad of reasons, especially temporary 5XX errors from APIs. If a single page out of a few thousand has this problem, everything needs to be prerendered from scratch again.
Proposed config change: Add something like
retries: number
here https://github.com/unjs/nitro/blob/14670c94d8f11f24525295f55ed427ac616fc643/src/types/nitro.ts#L252C8-L252C8 . 0 will give the current behaviour. 1 will give it two attempts before failing. -1 will let it retry each route indefinitely.Additional information
The text was updated successfully, but these errors were encountered: