Next.js Discord

Discord Forum

NextJs Project Structure

Answered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP
Hello Devs, I'm confused about the "pages" folder. If i want to create a /login route I only need to create login folder under app dir. In NextJs Documentation, the app folder and pages folder are on same level. So when to use pages folder?
Answered by Jboncz
Aside from this one spot, as long as you have app router selected here, you are in the correct spot for the app router documentation
View full answer

17 Replies

Cuban CrocodileOP
is my project structure correct?
@Jboncz
Can you link me to where your seeing that image?
here
So you wont use the pages router at all.
You will just use the app router.
@Cuban Crocodile is my project structure correct?
Cuban CrocodileOP
refer to this image sir, is my setup correct?
They are two completely different routing structures, app router is newer.
Yes it is
Aside from this one spot, as long as you have app router selected here, you are in the correct spot for the app router documentation
Answer
Cuban CrocodileOP
Thank you sir Im transitioning from plain react to nextjs, im so tired creating route manually lol
Hahah, nextjs is great! 🙂 Just make sure to post your questions here, people help out here as often as they can/want to.
Cuban CrocodileOP
Yess, thank you again sir!!
Make sure to close this entry by marking an answer
Original message was deleted
shown here
@Cuban Crocodile Yess, thank you again sir!!
@Cuban Crocodile please dont forget to mark an answer after receiving help 🙂