Next.js Discord

Discord Forum

How to structured top level directory right way in nextjs 15?

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
In nextjs 15 every component under app/ are server sided by default. Is it still server sided If I put component directory outside of app/ dir but inside of src/ dir ? Please see the Image.

1 Reply

Asian black bear
Yes, the location of a file does not affect whether its considered a server or a client component. Everything is a server component by default unless it's beyond a boundary denoted by the 'use client' directive.