Retry static exports #11796
Replies: 3 comments
-
for the time being you could try caching the results of the api call into your local filesystem, then when rebuilding check your cache first and use that data instead of doing the api call. |
Beta Was this translation helpful? Give feedback.
-
It'd probably be better to use something like |
Beta Was this translation helpful? Give feedback.
-
I've tried the retry logic, however, the issue persists. The 500x errors are no longer there, however, I get My total paths map has 400+ pages. The additional complexity is in the fact that I have to run two servers out of the same code base: static (the one I'm having issues rendering with) and dynamic (which has no problems but should not be affected by fixes to the static app). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to have Next retry building a static export? In my case, the build requires fetching data from remote API, which occasionally fails. I have 400+ paths to render so the chances of this happening is quite high.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions