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
All in all, fetching from your API routes, as you render, is not a good practice. It implies a jump out to the internet and back to your app, which is bound to be slow... Just fetch the data you need, directly from source, as you render.
Link to the code that reproduces this issue
https://github.com/jqvelin/reproduction-app
To Reproduce
npm run build
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error ...
Current vs. Expected behavior
Expected successful build of the application, got crash instead.
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
Same code is being built well with next.js v14.2.22
The text was updated successfully, but these errors were encountered: