An overview of Next Route Groups

Next Route Groups are a way to organize routes in the app directory without changing the URL paths. By enclosing a folder name in parentheses, you can create a Route Group that helps keep related routes together. This allows for better organization and management of routes within the app.

In this example, (admin-routes) (auth-routes) (client-routes)are route groups. they are grouped together for better organization, without altering URL structure.

The URL path to the unauthorized page will be only /unauthorized .

Next Route Groups enables you to organize your content logically, create nested layouts, and maintain a clean URL structure.

Thank you for reading.
If you liked this article shared it!
I appreciate your feedback.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Gabriel Penteado
Gabriel Penteado

Written by Gabriel Penteado

Hello, I am a software developer in constant progress, dedicated to creating solutions through projects that improve people’s lives.

No responses yet

What are your thoughts?