Is it okay to use app router and pages router simultaneously?
Unanswered
French Angora posted this in #help-forum
French AngoraOP
Hello, I’m trying to build a user dashboard using next.js, and I heard that using the app router would be better than using the pages router for dashboards, especially ones that interact with the backend server and database a lot.
Currently, the repository I’m supposed to build on top of uses pages router but uses Next version 14.0, so it should be able to support the app router too. Migrating the pages stuff to app is not an option currently.
Would it be okay to use the app router for the dashboard and keep the pages stuff how they are? By the way, everything in pages are not-protected, public routes that would basically never interact with the dashboard except maybe with some authentication related stuff. The dashboard on the other hand is behind a login. Another relevant detail is that we’re currently only using nextjs for frontend and routing basically, and not utilizing the api routes at all. The backend lives in a separate repo.
I would greatly appreciate any advice or help regarding whether this is a good idea, and if so, what are some best practices or things to keep in mind.
Thank you in advance for any advice and feedback.
Currently, the repository I’m supposed to build on top of uses pages router but uses Next version 14.0, so it should be able to support the app router too. Migrating the pages stuff to app is not an option currently.
Would it be okay to use the app router for the dashboard and keep the pages stuff how they are? By the way, everything in pages are not-protected, public routes that would basically never interact with the dashboard except maybe with some authentication related stuff. The dashboard on the other hand is behind a login. Another relevant detail is that we’re currently only using nextjs for frontend and routing basically, and not utilizing the api routes at all. The backend lives in a separate repo.
I would greatly appreciate any advice or help regarding whether this is a good idea, and if so, what are some best practices or things to keep in mind.
Thank you in advance for any advice and feedback.