next-learn
next-learn copied to clipboard
Chapter 10 Parital Prerendering, dynamic vs static, potential incorrect statement
link
In the section Static vs. Dynamic Routes, it is said that "if you call a dynamic function in a route (like querying your database), the entire route becomes dynamic." But this is not true, I ran npm run build and noticed that the dashboard page is still statically rendered. I also ran npm run start and noticed that the 3 seconds delay for fetchRevenue did not happen, indicating that the dashboard page is static.
Even when i embed a direct db call in dashboard/page.tsx, the page remains static.