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
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.
The text was updated successfully, but these errors were encountered:
I managed to have dynamic data in dashboard by using unstable_noStore in data.ts so that Next will not cache db data and re-fetch it at each client request.
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 rannpm run start
and noticed that the 3 seconds delay forfetchRevenue
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.The text was updated successfully, but these errors were encountered: