I'm working on a app that we have public and admin routes, in our past CRA app we've used custom routes elements, but we dont have thins in nextjs... We have a lot of public pages, and we have 20 private pages/routes.
Whats is the best way to deal with protected autenticated routes and public routes in nextjs?
Thanks so much! Best