Next.js Discord

Discord Forum

Understanding capabilities of a next v 13.2 app that is using pages router

Answered
Nebelung posted this in #help-forum
Open in Discord
NebelungOP
Hey guys, I'm a Front-end dev very comfortable with React, learning more about Next.js and I have a couple of questions,

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?
when creating api routes, I do need to export one default handler() function by file on the /pages/api folder, right?
it seems that somehow getServerSideProps still works in this project, is it because when you use the pages router those functions still work?

What are the other key things that I need to know in this kind of project?
btw the project uses typescript
Answered by Orinoco Crocodile
Ditto. The app router is the contemporary way to go.
View full answer

3 Replies

if you are just learning nextjs you shouldnt be focusing on pages
Orinoco Crocodile
Ditto. The app router is the contemporary way to go.
Answer
NebelungOP
right I agree, but I know I will be using pages router for an interview so I need to learn it first

@DirtyCajunRice | AppDir @Orinoco Crocodile