TanStackT
TanStack12mo ago
10 replies
uncertain-scarlet

can i have multiple Pathless Route Group Directories at the same level, each with a layout inside?

i'm looking to have the following structure

routes
  (auth)
    _layout.tsx
    index.tsx
  (static)
    _layout.tsx
    landing.tsx
    faq.tsx


i'm not actually sure that i need the layout in (static), but the key is that i dont want this group to be covered by (auth)'s layout. but even the (auth) layout is telling me i need unique paths for all routes.

one solution that i think should work, but i don't love, is to lift the layout out of (auth), and then exclude (static) like (static)_, or something roughly like this. i would much prefer to have auth stuff with layout all nested under there
Was this page helpful?