In Next.js, you never have to write a giant routing config file. Instead, folders define URL segments, and a special file named page.jsx makes that folder publicly accessible as a page.
For example, creating app/about/page.jsx immediately creates the URL /about. Any helper components you put inside app/about/ that are not named page.jsx stay private and won't become routes.