vercel/next.js

Docs: Next.js 15 fetch data with an ORM or database route static default

DevDynasty0 opened this issue · 0 comments

What is the documentation issue?

in this section: https://nextjs.org/docs/app/building-your-application/data-fetching/fetching#fetching-data-on-the-server-with-an-orm-or-database

"If you are not using any Dynamic APIs anywhere else in this route, it will be prerendered during next build to a static page."

but in this section: https://nextjs.org/docs/app/building-your-application/data-fetching/fetching#caching-data-with-an-orm-or-database

"You can use the unstable_cache API to cache the response to allow pages to be prerendered when running next build."

Is there any context that might help us understand?

Why we need unstable_cache to make a page prerendered as a page fetching data with an ORM or database is prerendered default if we do not use any dynamic api.

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/building-your-application/data-fetching/fetching#caching-data-with-an-orm-or-database