Next.js Discord

Discord Forum

NextJs Project Structure

Answered
Cuvier’s Dwarf Caiman posted this in #help-forum
Open in Discord
Cuvier’s Dwarf CaimanOP
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

Cuvier’s Dwarf CaimanOP
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.
@Cuvier’s Dwarf Caiman is my project structure correct?
Cuvier’s Dwarf CaimanOP
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
Cuvier’s Dwarf CaimanOP
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.
Cuvier’s Dwarf CaimanOP
Yess, thank you again sir!!
Make sure to close this entry by marking an answer
Original message was deleted
shown here
@Cuvier’s Dwarf Caiman Yess, thank you again sir!!
@Cuvier’s Dwarf Caiman please dont forget to mark an answer after receiving help 🙂