#nested layout

1 messages · Page 1 of 1 (latest)

agile parrot
#

is it possible to make the file structure like follows:

- routes
  - (user)
    - layout.tsx
    - [username].tsx

obviously layout.tsx isn't the proper naming convention, but just wondering if it's possible to achieve something like that. Currently I'm doing

- routes
  - (user)
    - [username].tsx
  - (user).tsx // this is the layout
``` but routes/ is gets pretty cluttered fast as I create route groups
frosty lava
#

not really, file + folder for layouts + children is just how start is configured