Architecture for performance
Answered
Russian Blue posted this in #help-forum
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
2 Replies
@Russian Blue 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!
nextjs will build a production output from your source so I don't think the folder structure will make any different
Answer
Russian BlueOP
okay thanks