lynn_phoenix
lynn_phoenix
TTCTheo's Typesafe Cult
Created by Wagner on 10/16/2023 in #questions
Understanding capabilities of a next v 13.2 app that is using pages router
I'm doing a code exercise where the next app is using version 13.2, but it uses pages router, so no server components right? Correct when creating api routes, I do need to export one default handler() function by file on the /pages/api folder, right? Correct it seems that somehow getServerSideProps still works in this project, is it because when you use the pages router those functions still work? Correct I would be sure to understand how the file based routing works in the pages directory. Know the difference between getServerSideProps, getStaticProps, getStaticPaths, and getInitialProps. Undestand the router and how things like next/link work. Outside of that, it's just general BE/FE concepts.
13 replies