Next.js Discord

Discord Forum

Nextjs 15, /src or /app directory?

Unanswered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
Open in Discord
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 solved?
Siberian
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.