Internal API fetch with getServerSideProps? (Next.js)
问题 I'm new to Next.js and I'm trying to understand the suggested structure and dealing with data between pages or components. For instance inside my home.js page, I fetch a internal API called /api/user.js where it sends back to me some user data from mongodb. The fetch right now happens inside the getServerSideProps() which passes various props to the page after some math. From my understanding this is the way to go for a good SEO, since props get fetched/modified server side and the page gets