Next JS Caching Doubts
I am trying to get familiar with next js by following one of the projects in the youtube. Using next js v15, I have a postgres db with drizzle ORM, Using server actions to fetch the data. So I have a home page which lists the data by fetching from the server. in the dev mode, the data is fetching dynamically for every render where as when i try to build for production. the home page is prerendered and its giving the same data everytime. I want it to be specific for each user when they authenticate. I have Gone through docs , I have found two options either exporting or using revalidate property to rerender after certain period of stale time. What is the best approach in these situations? please suggest me your way of approaching that would be helpful.
