Nextjs 15, /src or /app directory?
Unanswered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
Schneider’s Smooth-fronted CaimanOP
Which do you prefer? I'm currently using /app as it's the default selection with
pnpx create-next-app@latest
but I'm wondering if there is any good reason to use /src or if best practice now with Nextjs15 is to use /app?4 Replies
@Schneider’s Smooth-fronted Caiman Which do you prefer? I'm currently using /app as it's the default selection with `pnpx create-next-app@latest` but I'm wondering if there is any good reason to use /src or if best practice now with Nextjs15 is to use /app?
People sometimes like to use
/src/app/
and other people like to use directly /app/
. So it's just a personal preference@Schneider’s Smooth-fronted Caiman solved?
Siberian
@Schneider’s Smooth-fronted Caiman This may be of interest: https://www.reddit.com/r/nextjs/comments/14fd1kl/do_you_use_src_folder_when_you_use_app_router/
For normal projects, I like to use the src directory so that the top level directory isn’t flooded with files, and I know that my core app logic lives in src.
However, for monorepos, I prefer not using src to avoid tons of nesting, and usually most of my tooling and miscellaneous files will live in other areas of my repository.
However, for monorepos, I prefer not using src to avoid tons of nesting, and usually most of my tooling and miscellaneous files will live in other areas of my repository.