Next.js Discord

Discord Forum

Why are there two dashboard dirs in the project?

Answered
Blanc de Hotot posted this in #help-forum
Open in Discord
Avatar
Blanc de HototOP
Ive been looking at the example project, and noticed that there are two dashboard directories
Image
Answered by chisto
the folders inside the red folder (app) are the actual routes
like /dashboard, /dashboard/customers
they mostly contain just the page.tsx and all the components inside this page.tsx are in the ui folders with the same naming

its just a convention to have the same folder names so you can easily find components or stuff related to
View full answer

3 Replies

Avatar
the folders inside the red folder (app) are the actual routes
like /dashboard, /dashboard/customers
they mostly contain just the page.tsx and all the components inside this page.tsx are in the ui folders with the same naming

its just a convention to have the same folder names so you can easily find components or stuff related to
Answer
Avatar
only the folders with page.tsx file, are directories or routes
Avatar
Blanc de HototOP
Thank you!, the more I looked at it the less is was making sense