Next.js Discord

Discord Forum

Architecture for performance

Answered
Russian Blue posted this in #help-forum
Open in Discord
Russian BlueOP
Currently, I have a _services(functions to retrieve data from db using prisma for example and intended to be used in server components) folder and a _components(reusables) folder inside my app directory next to the root layout, is this okay? Or can it potentially impose routing performance issues if these folders get heavy? Thanks!
Answered by Ray
nextjs will build a production output from your source so I don't think the folder structure will make any different
View full answer

2 Replies