file structure in nextjs?
Unanswered
Dalmatian posted this in #help-forum
DalmatianOP
Hi, I'd like to know the most optimal file structure for NextJs, last time I made a project in NextJs I ended up having a bunch of disordered directories for each route, like
/signin
and many other, but I was not able to put them all inside a single directory. Hence the question5 Replies
@Dalmatian Hi, I'd like to know the most optimal file structure for NextJs, last time I made a project in NextJs I ended up having a bunch of disordered directories for each route, like `/signin` and many other, but I was not able to put them all inside a single directory. Hence the question
Briard
actually there are many file structures pattern u can follow, but make sure to use app router
u can design ur own pages paths , you may take a look into some boilerplates for example https://github.com/ixartz/Next-js-Boilerplate
DalmatianOP
are these the routes in this project? I'm confused
Briard
u can specify the routes in your app directory
for example one of the route is en/dashboard