next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Chapter 10 Parital Prerendering, dynamic vs static, potential incorrect statement

Open a89529294 opened this issue 1 year ago • 1 comments

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.

a89529294 avatar Oct 08 '24 03:10 a89529294