I'm trying to wrap my head around the rendering behavior of SSR/SSG/ISR in Next.js version 14 with the updated app router.
Previously, Next.js provided predefined functions like getServerSideProps
for server-side fetching and processing (SSR), or getStaticProps
for pre-generating data during build time and caching it on the server (if I understood correctly).
What are the equivalents of these functions in Next.js 14 with the new app router?
I noticed that the documentation only showcases examples using the native fetch
API. Can I use the axios library to make HTTP requests and achieve the same results?
Appreciate any insights!