#route query
1 messages · Page 1 of 1 (latest)
In the provided extracts, there isn't a specific mention of (dashboard)/dashboard in the app folder. However, there is information about the app/dashboard folder structure. The app/dashboard folder represents a route segment in a Next.js application. By creating a folder named dashboard inside the app directory, you define a route segment that maps to a URL segment, such as yourdomain.com/dashboard.
For example, if you have a layout file app/dashboard/layout.tsx, it would apply to the specific route segment yourdomain.com/dashboard and render when that segment is active.
You can read more about routing and folder structures in the provided extracts:
- Nested Routes (https://nextjs.org/docs/app/building-your-application/routing#nested-routes)
- Defining Routes (https://nextjs.org/docs/app/building-your-application/routing/defining-routes)
- Pages and Layouts (https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts)
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@long dune kapa.ai is still learning and improving, please let us how it did by reacting below
Let me check the knowledge base for you. One moment! :books:
Sorry @long dune, I seem to be having a bit of trouble. Don't worry though, I've pinged my supprt and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
@stone monolith what if I create (dashboard)/dashboard named folder in app
Let me check the knowledge base for you. One moment! :books:
If you create a folder named dashboard inside another folder named dashboard within the app directory (i.e., app/dashboard/dashboard), you would be defining a nested route in your Next.js application. This nested route would map to a URL segment like yourdomain.com/dashboard/dashboard.
To make this route publicly accessible, you would need to create a page.js (or page.tsx) file inside the app/dashboard/dashboard folder.
Remember that each folder represents a route segment, and you can create nested routes by nesting folders inside each other. You can read more about routing and folder structures in the provided extracts:
- Nested Routes (https://nextjs.org/docs/app/building-your-application/routing#nested-routes)
- Defining Routes (https://nextjs.org/docs/app/building-your-application/routing/defining-routes)
- Pages and Layouts (https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts)