Routing
This article does not cover the settings in next.js
because the next.js
documentation is quite complete here
Create react app, Vite.js
The routing is based on react-router.
In this page you will find how to add new routes and how we handle existing routes.
You can find the template's router configuration in src/routes/sections/index.js
contains all routes of our template.
Add a new route (Next.js)
- create
src/app/dashboard/new-page/page.(jsx | tsx)
- https://nextjs.org/docs/app/building-your-application/routing/pages