-
to reproduce :
NextJS v14.2.3 with app router.
Make a http call with fetch on an external API. -
current behavior:
if the API is not available at build time, there’s a pre-render error, and the build fails. Ifcache: 'no-store'
is set, then the build succeed, or if the fetch is wrapped inside a try/catch. And i want cache at runtime, socache: 'no-store'
is not an option for me.
Why this behaviour ? I can understand that local data could be cached, but why externals apis are called during build time ?