Organize routes using parenthesized layout groups like (auth), (dashboard), (content), (marketing) for separate layouts and clear separation of concerns.
Why This Matters
Without route groups, the app directory becomes a flat list of routes that share the same layout. This makes it impossible to have different layouts per section and harder to navigate as the app grows.
Tags
nextjssupabase
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 2+ others. Get actionable feedback before code ships.